changeset 25384:9199a89af9d6

Remove pointless pa_stream_trigger call
author reimar
date Sat, 15 Dec 2007 17:06:59 +0000
parents 9ca05492f9f3
children 52f6c42c43bb
files libao2/ao_pulse.c
diffstat 1 files changed, 0 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_pulse.c	Sat Dec 15 16:58:25 2007 +0000
+++ b/libao2/ao_pulse.c	Sat Dec 15 17:06:59 2007 +0000
@@ -256,20 +256,10 @@
 
 /** 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;
 }