mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 13:02:29 +00:00
[MOVED FROM GST-P-FARSIGHT] Return back result of pad push
20071110050232-3e2dc-4a080d97963cd8ab6d528c4012d14353c1cfe97b.gz
This commit is contained in:
parent
bcfd238405
commit
cd1077398c
1 changed files with 3 additions and 2 deletions
|
@ -182,6 +182,7 @@ gst_mimdec_chain (GstPad *pad, GstBuffer *in)
|
||||||
guint16 header_size;
|
guint16 header_size;
|
||||||
gint width, height;
|
gint width, height;
|
||||||
GstCaps * caps;
|
GstCaps * caps;
|
||||||
|
GstFlowReturn res = GST_FLOW_OK;
|
||||||
|
|
||||||
GST_DEBUG ("in gst_mimdec_chain");
|
GST_DEBUG ("in gst_mimdec_chain");
|
||||||
|
|
||||||
|
@ -319,12 +320,12 @@ gst_mimdec_chain (GstPad *pad, GstBuffer *in)
|
||||||
"height", G_TYPE_INT, height, NULL);
|
"height", G_TYPE_INT, height, NULL);
|
||||||
gst_buffer_set_caps (out_buf, caps);
|
gst_buffer_set_caps (out_buf, caps);
|
||||||
gst_caps_unref (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);
|
gst_adapter_flush (mimdec->adapter, mimdec->payload_size);
|
||||||
mimdec->have_header = FALSE;
|
mimdec->have_header = FALSE;
|
||||||
|
|
||||||
return GST_FLOW_OK;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
return GST_FLOW_OK;
|
return GST_FLOW_OK;
|
||||||
|
|
Loading…
Reference in a new issue