Commit 621dab23 authored by Wim Taymans's avatar Wim Taymans
Browse files

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.
parent 419ede20
2008-10-03 Wim Taymans <wim.taymans@collabora.co.uk>
* ext/pulse/pulsesink.c: (gst_pulsesink_write):
* ext/pulse/pulsesrc.c: (gst_pulsesrc_read):
Return -1 instead of 0 in error cases. Fixes #554771.
2008-10-03 Wim Taymans <wim.taymans@collabora.co.uk>
 
* sys/ximage/gstximagesrc.c: (gst_ximage_src_start),
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment