mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
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:
parent
419ede208d
commit
621dab2328
3 changed files with 16 additions and 5 deletions
|
@ -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),
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue