make sure to call sink->update_requested_latency() always when we change latency...
authorLennart Poettering <lennart@poettering.net>
Sat, 3 May 2008 01:31:39 +0000 (01:31 +0000)
committerLennart Poettering <lennart@poettering.net>
Sat, 3 May 2008 01:31:39 +0000 (01:31 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2353 fefdeb5f-60dc-0310-8127-8f9354f1896f

src/pulsecore/sink.c
src/pulsecore/source.c

index 6c427e1..d3bacbf 100644 (file)
@@ -1296,9 +1296,6 @@ void pa_sink_invalidate_requested_latency(pa_sink *s) {
     pa_sink_assert_ref(s);
     pa_assert(PA_SINK_IS_LINKED(s->thread_info.state));
 
-    if (!s->thread_info.requested_latency_valid)
-        return;
-
     s->thread_info.requested_latency_valid = FALSE;
 
     if (s->update_requested_latency)
index efd6dab..fc4734f 100644 (file)
@@ -783,9 +783,6 @@ void pa_source_invalidate_requested_latency(pa_source *s) {
     pa_source_assert_ref(s);
     pa_assert(PA_SOURCE_IS_LINKED(s->thread_info.state));
 
-    if (!s->thread_info.requested_latency_valid)
-        return;
-
     s->thread_info.requested_latency_valid = FALSE;
 
     if (s->update_requested_latency)