summaryrefslogtreecommitdiffstats
path: root/ext/pulse/pulsesrc.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2008-10-03 16:13:32 +0000
committerWim Taymans <wim.taymans@gmail.com>2008-10-03 16:13:32 +0000
commit621dab2328c1828ab669c1903c576c74f6ea6b19 (patch)
tree8d8aee0c56685cbf8952582871ab814e304471f5 /ext/pulse/pulsesrc.c
parent419ede208d5ca0c8aac97a5b258d217f8abd03ce (diff)
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.
Diffstat (limited to 'ext/pulse/pulsesrc.c')
-rw-r--r--ext/pulse/pulsesrc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/pulse/pulsesrc.c b/ext/pulse/pulsesrc.c
index 26e0897e..0e1ca20e 100644
--- a/ext/pulse/pulsesrc.c
+++ b/ext/pulse/pulsesrc.c
@@ -578,9 +578,12 @@ gst_pulsesrc_read (GstAudioSrc * asrc, gpointer data, guint length)
return sum;
+ /* ERRORS */
unlock_and_fail:
- pa_threaded_mainloop_unlock (pulsesrc->mainloop);
- return 0;
+ {
+ pa_threaded_mainloop_unlock (pulsesrc->mainloop);
+ return -1;
+ }
}
static guint