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.
This commit is contained in:
Wim Taymans 2008-10-03 16:13:32 +00:00
parent 419ede208d
commit 621dab2328
3 changed files with 16 additions and 5 deletions

View file

@ -1,3 +1,9 @@
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),

View file

@ -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

View file

@ -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