summaryrefslogtreecommitdiffstats
path: root/ext/mimic
diff options
context:
space:
mode:
authorOlivier Crete <olivier.crete@collabora.co.uk>2007-11-10 05:02:32 +0000
committerOlivier CrĂȘte <olivier.crete@collabora.co.uk>2009-03-03 14:34:05 -0500
commitcd1077398c7bb44ace76f3fe876edfd7c50c5e39 (patch)
tree71ae7419298fe0591121e8cdb49eeb1568c79a3e /ext/mimic
parentbcfd2384050eb7eddf199dd591710e81fd74a949 (diff)
downloadgst-plugins-bad-cd1077398c7bb44ace76f3fe876edfd7c50c5e39.tar.gz
gst-plugins-bad-cd1077398c7bb44ace76f3fe876edfd7c50c5e39.tar.bz2
gst-plugins-bad-cd1077398c7bb44ace76f3fe876edfd7c50c5e39.zip
[MOVED FROM GST-P-FARSIGHT] Return back result of pad push
20071110050232-3e2dc-4a080d97963cd8ab6d528c4012d14353c1cfe97b.gz
Diffstat (limited to 'ext/mimic')
-rw-r--r--ext/mimic/gstmimdec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/mimic/gstmimdec.c b/ext/mimic/gstmimdec.c
index 8cc3069e..3df7e702 100644
--- a/ext/mimic/gstmimdec.c
+++ b/ext/mimic/gstmimdec.c
@@ -182,6 +182,7 @@ gst_mimdec_chain (GstPad *pad, GstBuffer *in)
guint16 header_size;
gint width, height;
GstCaps * caps;
+ GstFlowReturn res = GST_FLOW_OK;
GST_DEBUG ("in gst_mimdec_chain");
@@ -319,12 +320,12 @@ gst_mimdec_chain (GstPad *pad, GstBuffer *in)
"height", G_TYPE_INT, height, NULL);
gst_buffer_set_caps (out_buf, caps);
gst_caps_unref (caps);
- gst_pad_push (mimdec->srcpad, out_buf);
+ res = gst_pad_push (mimdec->srcpad, out_buf);
gst_adapter_flush (mimdec->adapter, mimdec->payload_size);
mimdec->have_header = FALSE;
- return GST_FLOW_OK;
+ return res;
}
return GST_FLOW_OK;