[MPlayer-cvslog] r25412 - trunk/libao2/ao_pulse.c

reimar subversion at mplayerhq.hu
Sat Dec 15 18:06:59 CET 2007


Author: reimar
Date: Sat Dec 15 18:06:59 2007
New Revision: 25412

Log:
Remove pointless pa_stream_trigger call


Modified:
   trunk/libao2/ao_pulse.c

Modified: trunk/libao2/ao_pulse.c
==============================================================================
--- trunk/libao2/ao_pulse.c	(original)
+++ trunk/libao2/ao_pulse.c	Sat Dec 15 18:06:59 2007
@@ -256,20 +256,10 @@ static void uninit(int immed) {
 
 /** Play the specified data to the pulseaudio server */
 static int play(void* data, int len, int flags) {
-    if (len) {
         if (pa_stream_write(stream, data, len, NULL, 0, PA_SEEK_RELATIVE) < 0) {
             GENERIC_ERR_MSG(context, "pa_stream_write() failed");
             return -1;
         }
-    } else {
-        pa_operation *o = pa_stream_trigger(stream, NULL, NULL);
-        if (!o) {
-            GENERIC_ERR_MSG(context, "pa_stream_trigger() failed");
-            return -1;
-        }
-        /* We don't wait for this operation to complete */
-        pa_operation_unref(o);
-    }
     return len;
 }
 



More information about the MPlayer-cvslog mailing list