summaryrefslogtreecommitdiffstats
path: root/libao2
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-15 17:06:59 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-15 17:06:59 +0000
commit8778005565fed27927460cde8a80391f55c78541 (patch)
tree9645bc2a7df6ce580f9848e55dd865185bf62108 /libao2
parentfd77e658608ad6eaa5c566ed82d8d05ec1b97d64 (diff)
downloadmpv-8778005565fed27927460cde8a80391f55c78541.tar.bz2
mpv-8778005565fed27927460cde8a80391f55c78541.tar.xz
Remove pointless pa_stream_trigger call
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25412 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2')
-rw-r--r--libao2/ao_pulse.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/libao2/ao_pulse.c b/libao2/ao_pulse.c
index 3ba7214e26..af73a72a45 100644
--- a/libao2/ao_pulse.c
+++ b/libao2/ao_pulse.c
@@ -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;
}