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