[gst-cvs] gst-plugins-bad: mimdec: Flush adapter right ater using it
Olivier Crête
tester at kemper.freedesktop.org
Wed Jun 2 18:40:20 PDT 2010
Module: gst-plugins-bad
Branch: master
Commit: 456456401a5c2bc4be984448d5ea1b181a093ab4
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=456456401a5c2bc4be984448d5ea1b181a093ab4
Author: Olivier Crête <olivier.crete at collabora.co.uk>
Date: Wed Jun 2 19:44:31 2010 -0400
mimdec: Flush adapter right ater using it
---
ext/mimic/gstmimdec.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/ext/mimic/gstmimdec.c b/ext/mimic/gstmimdec.c
index d2b1a98..fa8ab9c 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:
More information about the Gstreamer-commits
mailing list