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

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


Author: lennart
Date: Fri May 16 01:16:49 2008
New Revision: 2440

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2440&root=pulseaudio&view=rev
Log:
fix moving of record streams

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

Modified: branches/glitch-free/src/pulsecore/source-output.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/glitch-free/src/pulsecore/source-output.c?rev=2440&root=pulseaudio&r1=2439&r2=2440&view=diff
==============================================================================
--- branches/glitch-free/src/pulsecore/source-output.c (original)
+++ branches/glitch-free/src/pulsecore/source-output.c Fri May 16 01:16:49 2008
@@ -635,12 +635,24 @@
         if (o->thread_info.resampler)
             pa_resampler_free(o->thread_info.resampler);
         o->thread_info.resampler = new_resampler;
-    }
-
-    pa_asyncmsgq_send(o->source->asyncmsgq, PA_MSGOBJECT(o->source), PA_SOURCE_MESSAGE_ADD_OUTPUT, o, 0, NULL);
+
+        pa_memblockq_free(o->thread_info.delay_memblockq);
+
+        o->thread_info.delay_memblockq = pa_memblockq_new(
+                0,
+                MEMBLOCKQ_MAXLENGTH,
+                0,
+                pa_frame_size(&o->source->sample_spec),
+                0,
+                1,
+                0,
+                &o->source->silence);
+    }
 
     pa_source_update_status(origin);
     pa_source_update_status(dest);
+
+    pa_asyncmsgq_send(o->source->asyncmsgq, PA_MSGOBJECT(o->source), PA_SOURCE_MESSAGE_ADD_OUTPUT, o, 0, NULL);
 
     if (o->moved)
         o->moved(o);




More information about the pulseaudio-commits mailing list