[pulseaudio-commits] r1989 - /trunk/src/modules/module-tunnel.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Mon Oct 29 15:14:35 PDT 2007


Author: lennart
Date: Mon Oct 29 23:14:34 2007
New Revision: 1989

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1989&root=pulseaudio&view=rev
Log:
don't try to send pause request before our stream is properly set up

Modified:
    trunk/src/modules/module-tunnel.c

Modified: trunk/src/modules/module-tunnel.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/module-tunnel.c?rev=1989&root=pulseaudio&r1=1988&r2=1989&view=diff
==============================================================================
--- trunk/src/modules/module-tunnel.c (original)
+++ trunk/src/modules/module-tunnel.c Mon Oct 29 23:14:34 2007
@@ -230,6 +230,9 @@
     else
         pa_smoother_resume(u->smoother, pa_rtclock_usec());
 
+    if (!u->pstream)
+        return;
+
     t = pa_tagstruct_new(NULL, 0);
 #ifdef TUNNEL_SINK
     pa_tagstruct_putu32(t, PA_COMMAND_CORK_PLAYBACK_STREAM);
@@ -811,7 +814,7 @@
     pa_tagstruct_putu32(reply, PA_INVALID_INDEX);
     pa_tagstruct_puts(reply, u->sink_name);
     pa_tagstruct_putu32(reply, u->maxlength);
-    pa_tagstruct_put_boolean(reply, FALSE);
+    pa_tagstruct_put_boolean(reply, !PA_SINK_OPENED(pa_sink_get_state(u->sink)));
     pa_tagstruct_putu32(reply, u->tlength);
     pa_tagstruct_putu32(reply, u->prebuf);
     pa_tagstruct_putu32(reply, u->minreq);
@@ -827,7 +830,7 @@
     pa_tagstruct_putu32(reply, PA_INVALID_INDEX);
     pa_tagstruct_puts(reply, u->source_name);
     pa_tagstruct_putu32(reply, u->maxlength);
-    pa_tagstruct_put_boolean(reply, 0);
+    pa_tagstruct_put_boolean(reply, !PA_SOURCE_OPENED(pa_source_get_state(u->source)));
     pa_tagstruct_putu32(reply, u->fragsize);
 #endif
 




More information about the pulseaudio-commits mailing list