From 621dab2328c1828ab669c1903c576c74f6ea6b19 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 3 Oct 2008 16:13:32 +0000 Subject: ext/pulse/: Return -1 instead of 0 in error cases. Fixes #554771. Original commit message from CVS: * ext/pulse/pulsesink.c: (gst_pulsesink_write): * ext/pulse/pulsesrc.c: (gst_pulsesrc_read): Return -1 instead of 0 in error cases. Fixes #554771. --- ext/pulse/pulsesink.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'ext/pulse/pulsesink.c') diff --git a/ext/pulse/pulsesink.c b/ext/pulse/pulsesink.c index 33b51d54..e434bf40 100644 --- a/ext/pulse/pulsesink.c +++ b/ext/pulse/pulsesink.c @@ -717,10 +717,12 @@ gst_pulsesink_write (GstAudioSink * asink, gpointer data, guint length) return sum; + /* ERRORS */ unlock_and_fail: - - pa_threaded_mainloop_unlock (pulsesink->mainloop); - return 0; + { + pa_threaded_mainloop_unlock (pulsesink->mainloop); + return -1; + } } static guint -- cgit