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

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Sat Jul 28 15:55:44 PDT 2007


Author: lennart
Date: Sun Jul 29 00:55:44 2007
New Revision: 1558

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1558&root=3Dpulseaudio&vi=
ew=3Drev
Log:
drop data from inputs only when in running state

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=3D1558&root=3Dpulseaudio&r1=3D1557&r2=3D1558&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/lennart/src/pulsecore/sink.c (original)
+++ branches/lennart/src/pulsecore/sink.c Sun Jul 29 00:55:44 2007
@@ -408,7 +408,8 @@
         result->index =3D 0;
     }
 =

-    inputs_drop(s, info, n, result->length);
+    if (s->thread_info.state =3D=3D PA_SINK_RUNNING)
+        inputs_drop(s, info, n, result->length);
 =

     if (s->monitor_source)
         pa_source_post(s->monitor_source, result);
@@ -472,7 +473,8 @@
         pa_memblock_release(target->memblock);
     }
 =

-    inputs_drop(s, info, n, target->length);
+    if (s->thread_info.state =3D=3D PA_SINK_RUNNING)
+        inputs_drop(s, info, n, target->length);
 =

     if (s->monitor_source)
         pa_source_post(s->monitor_source, target);




More information about the pulseaudio-commits mailing list