summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/sink-input.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-08-29 01:20:25 +0200
committerLennart Poettering <lennart@poettering.net>2008-08-29 01:20:25 +0200
commit450fe170a5d8a38a9e49ddaae02ed7524e78a51f (patch)
tree418f8fd5f8abe3f12a6aaea5e402bd3dd744fd68 /src/pulsecore/sink-input.c
parent63505bee07adf94f33ba4a8bdd4ab8dfdf0e57a1 (diff)
fix up latency before calling into stream code, to make sure we don't ask for too much data to early
Diffstat (limited to 'src/pulsecore/sink-input.c')
-rw-r--r--src/pulsecore/sink-input.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/pulsecore/sink-input.c b/src/pulsecore/sink-input.c
index f4e803d0..7d80242f 100644
--- a/src/pulsecore/sink-input.c
+++ b/src/pulsecore/sink-input.c
@@ -756,14 +756,11 @@ pa_usec_t pa_sink_input_set_requested_latency(pa_sink_input *i, pa_usec_t usec)
if (PA_SINK_INPUT_IS_LINKED(i->state))
pa_assert_se(pa_asyncmsgq_send(i->sink->asyncmsgq, PA_MSGOBJECT(i), PA_SINK_INPUT_MESSAGE_SET_REQUESTED_LATENCY, &usec, 0, NULL) == 0);
- else {
+ else
/* If this sink input is not realized yet, we have to touch
* the thread info data directly */
- usec = fixup_latency(i->sink, usec);
i->thread_info.requested_sink_latency = usec;
- i->sink->thread_info.requested_latency_valid = FALSE;
- }
return usec;
}