[pulseaudio-commits] r2441 - /branches/glitch-free/src/pulsecore/source.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Thu May 15 16:17:23 PDT 2008


Author: lennart
Date: Fri May 16 01:17:22 2008
New Revision: 2441

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2441&root=pulseaudio&view=rev
Log:
fix up requested latency when we move a record stream

Modified:
    branches/glitch-free/src/pulsecore/source.c

Modified: branches/glitch-free/src/pulsecore/source.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/glitch-free/src/pulsecore/source.c?rev=2441&root=pulseaudio&r1=2440&r2=2441&view=diff
==============================================================================
--- branches/glitch-free/src/pulsecore/source.c (original)
+++ branches/glitch-free/src/pulsecore/source.c Fri May 16 01:17:22 2008
@@ -577,8 +577,6 @@
 
             pa_hashmap_put(s->thread_info.outputs, PA_UINT32_TO_PTR(o->index), pa_source_output_ref(o));
 
-            pa_source_output_update_max_rewind(o, s->thread_info.max_rewind);
-
             pa_assert(!o->thread_info.attached);
             o->thread_info.attached = TRUE;
 
@@ -587,7 +585,12 @@
 
             pa_source_output_set_state_within_thread(o, o->state);
 
-            pa_source_invalidate_requested_latency(s);
+            pa_source_output_update_max_rewind(o, s->thread_info.max_rewind);
+
+            /* We don't just invalidate the requested latency here,
+             * because if we are in a move we might need to fix up the
+             * requested latency. */
+            pa_source_output_set_requested_latency_within_thread(o, o->thread_info.requested_source_latency);
 
             return 0;
         }




More information about the pulseaudio-commits mailing list