summaryrefslogtreecommitdiff
path: root/ext/pulse/pulsesrc.c
diff options
context:
space:
mode:
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 26e0897eaf..0e1ca20e17 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