[pulseaudio-commits] r1901 - /branches/lennart/src/pulsecore/sink.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Mon Sep 24 16:32:02 PDT 2007


Author: lennart
Date: Tue Sep 25 01:32:01 2007
New Revision: 1901

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1901&root=pulseaudio&view=rev
Log:
only post data into the monitor source when it is not suspended

Modified:
    branches/lennart/src/pulsecore/sink.c

Modified: branches/lennart/src/pulsecore/sink.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/sink.c?rev=1901&root=pulseaudio&r1=1900&r2=1901&view=diff
==============================================================================
--- branches/lennart/src/pulsecore/sink.c (original)
+++ branches/lennart/src/pulsecore/sink.c Tue Sep 25 01:32:01 2007
@@ -482,7 +482,7 @@
     if (s->thread_info.state == PA_SINK_RUNNING)
         inputs_drop(s, info, n, result->length);
 
-    if (s->monitor_source)
+    if (s->monitor_source && PA_SOURCE_OPENED(pa_source_get_state(s->monitor_source)))
         pa_source_post(s->monitor_source, result);
 
     pa_sink_unref(s);
@@ -549,7 +549,7 @@
     if (s->thread_info.state == PA_SINK_RUNNING)
         inputs_drop(s, info, n, target->length);
 
-    if (s->monitor_source)
+    if (s->monitor_source && PA_SOURCE_OPENED(pa_source_get_state(s->monitor_source)))
         pa_source_post(s->monitor_source, target);
 
     pa_sink_unref(s);




More information about the pulseaudio-commits mailing list