summaryrefslogtreecommitdiffstats
path: root/ext/pulse/pulsesink.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pulse/pulsesink.c')
-rw-r--r--ext/pulse/pulsesink.c8
1 files changed, 5 insertions, 3 deletions
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