mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
gst-libs/gst/audio/gstaudiofilter.c: Don't ignore flow return from gst_pad_push().
Original commit message from CVS: * gst-libs/gst/audio/gstaudiofilter.c: (gst_audio_filter_chain): Don't ignore flow return from gst_pad_push().
This commit is contained in:
parent
8e6d3a5c03
commit
ab6f99ab60
2 changed files with 10 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2006-03-07 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* gst-libs/gst/audio/gstaudiofilter.c: (gst_audio_filter_chain):
|
||||
Don't ignore flow return from gst_pad_push().
|
||||
|
||||
2006-03-07 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* ext/libvisual/visual.c: (gst_visual_getcaps),
|
||||
|
|
|
@ -201,6 +201,7 @@ gst_audio_filter_init (GTypeInstance * instance, gpointer g_class)
|
|||
static GstFlowReturn
|
||||
gst_audio_filter_chain (GstPad * pad, GstBuffer * buffer)
|
||||
{
|
||||
GstFlowReturn ret = GST_FLOW_OK;
|
||||
GstBuffer *inbuf = GST_BUFFER (buffer);
|
||||
GstAudioFilter *audiofilter;
|
||||
GstBuffer *outbuf;
|
||||
|
@ -221,9 +222,9 @@ gst_audio_filter_chain (GstPad * pad, GstBuffer * buffer)
|
|||
GST_BUFFER_SIZE (inbuf), GST_OBJECT_NAME (audiofilter));
|
||||
|
||||
if (audiofilter->passthru) {
|
||||
gst_pad_push (audiofilter->srcpad, buffer);
|
||||
ret = gst_pad_push (audiofilter->srcpad, buffer);
|
||||
gst_object_unref (audiofilter);
|
||||
return GST_FLOW_OK;
|
||||
return ret;
|
||||
}
|
||||
|
||||
audiofilter->size = GST_BUFFER_SIZE (inbuf);
|
||||
|
@ -256,10 +257,10 @@ gst_audio_filter_chain (GstPad * pad, GstBuffer * buffer)
|
|||
gst_buffer_unref (inbuf);
|
||||
}
|
||||
|
||||
gst_pad_push (audiofilter->srcpad, outbuf);
|
||||
ret = gst_pad_push (audiofilter->srcpad, outbuf);
|
||||
|
||||
gst_object_unref (audiofilter);
|
||||
return GST_FLOW_OK;
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue