mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +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>
|
2008-10-03 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||||
|
|
||||||
* sys/ximage/gstximagesrc.c: (gst_ximage_src_start),
|
* sys/ximage/gstximagesrc.c: (gst_ximage_src_start),
|
||||||
|
|
|
@ -717,10 +717,12 @@ gst_pulsesink_write (GstAudioSink * asink, gpointer data, guint length)
|
||||||
|
|
||||||
return sum;
|
return sum;
|
||||||
|
|
||||||
|
/* ERRORS */
|
||||||
unlock_and_fail:
|
unlock_and_fail:
|
||||||
|
{
|
||||||
pa_threaded_mainloop_unlock (pulsesink->mainloop);
|
pa_threaded_mainloop_unlock (pulsesink->mainloop);
|
||||||
return 0;
|
return -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static guint
|
static guint
|
||||||
|
|
|
@ -578,9 +578,12 @@ gst_pulsesrc_read (GstAudioSrc * asrc, gpointer data, guint length)
|
||||||
|
|
||||||
return sum;
|
return sum;
|
||||||
|
|
||||||
|
/* ERRORS */
|
||||||
unlock_and_fail:
|
unlock_and_fail:
|
||||||
|
{
|
||||||
pa_threaded_mainloop_unlock (pulsesrc->mainloop);
|
pa_threaded_mainloop_unlock (pulsesrc->mainloop);
|
||||||
return 0;
|
return -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static guint
|
static guint
|
||||||
|
|
Loading…
Reference in a new issue