summaryrefslogtreecommitdiff
path: root/ext/mimic
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.co.uk>2010-06-02 19:44:31 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.co.uk>2010-06-02 21:03:54 -0400
commit456456401a5c2bc4be984448d5ea1b181a093ab4 (patch)
tree580a69ddc25a4e10aea0d9387dbf4b2cfc2a6971 /ext/mimic
parentfd9f049bf23891169cc5ca1c16c4e87b79b45e72 (diff)
downloadgstreamer-plugins-bad-456456401a5c2bc4be984448d5ea1b181a093ab4.tar.gz
mimdec: Flush adapter right ater using it
Diffstat (limited to 'ext/mimic')
-rw-r--r--ext/mimic/gstmimdec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/mimic/gstmimdec.c b/ext/mimic/gstmimdec.c
index d2b1a9830..fa8ab9c23 100644
--- a/ext/mimic/gstmimdec.c
+++ b/ext/mimic/gstmimdec.c
@@ -277,6 +277,7 @@ gst_mim_dec_chain (GstPad * pad, GstBuffer * buf)
res = GST_FLOW_ERROR;
goto out;
}
+ gst_adapter_flush (mimdec->adapter, payload_size);
if (GST_CLOCK_TIME_IS_VALID (in_time))
GST_BUFFER_TIMESTAMP (out_buf) = in_time;
@@ -300,8 +301,6 @@ gst_mim_dec_chain (GstPad * pad, GstBuffer * buf)
gst_buffer_set_caps (out_buf, caps);
gst_caps_unref (caps);
res = gst_pad_push (mimdec->srcpad, out_buf);
-
- gst_adapter_flush (mimdec->adapter, payload_size);
}
out: