summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/source.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/source.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/source.c')
-rw-r--r--src/pulsecore/source.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pulsecore/source.c b/src/pulsecore/source.c
index 7ed32e92..edbbf017 100644
--- a/src/pulsecore/source.c
+++ b/src/pulsecore/source.c
@@ -670,6 +670,9 @@ int pa_source_process_msg(pa_msgobject *object, int code, void *userdata, int64_
pa_source_output_set_state_within_thread(o, o->state);
+ if (o->thread_info.requested_source_latency != (pa_usec_t) -1)
+ pa_source_output_set_requested_latency_within_thread(o, o->thread_info.requested_source_latency);
+
pa_source_output_update_max_rewind(o, s->thread_info.max_rewind);
/* We don't just invalidate the requested latency here,