# HG changeset patch # User reimar # Date 1197738419 0 # Node ID 9199a89af9d62edbda1164a177020aaa33bc917e # Parent 9ca05492f9f303b5bccfabd8716533f6f79e1afa Remove pointless pa_stream_trigger call diff -r 9ca05492f9f3 -r 9199a89af9d6 libao2/ao_pulse.c --- 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; }