From ed0038e68593ecd002576f2f04a256772878214a Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 27 Jan 2006 17:00:09 +0000 Subject: [PATCH] ext/libvisual/visual.c: When pad_alloc returns a GstFlowReturn other than GST_FLOW_OK, make sure it is passed upstream. Original commit message from CVS: * ext/libvisual/visual.c: (get_buffer): When pad_alloc returns a GstFlowReturn other than GST_FLOW_OK, make sure it is passed upstream. --- ChangeLog | 6 ++++++ ext/libvisual/visual.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 23c7796643..f2f14ddcc1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-01-27 Jan Schmidt + + * ext/libvisual/visual.c: (get_buffer): + When pad_alloc returns a GstFlowReturn other + than GST_FLOW_OK, make sure it is passed upstream. + 2006-01-27 Jan Schmidt * ext/alsa/gstalsasink.c: (gst_alsasink_finalise), diff --git a/ext/libvisual/visual.c b/ext/libvisual/visual.c index b691e5269e..3e06f10e12 100644 --- a/ext/libvisual/visual.c +++ b/ext/libvisual/visual.c @@ -363,6 +363,9 @@ get_buffer (GstVisual * visual, GstBuffer ** outbuf) visual->video->bpp, GST_PAD_CAPS (visual->srcpad), outbuf); } + if (ret != GST_FLOW_OK) + return ret; + if (*outbuf == NULL) return GST_FLOW_ERROR; -- 2.34.1