From ae3ee32f420c2e567959bbe142c92faaa61720d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 24 May 2013 19:31:14 +0200 Subject: [PATCH] flxdec: Flush data from adapter after reading it Otherwise we're going in an infinite loop, reading the same data over and over again. --- gst/flx/gstflxdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/flx/gstflxdec.c b/gst/flx/gstflxdec.c index 5c90a34d98..0f17e75178 100644 --- a/gst/flx/gstflxdec.c +++ b/gst/flx/gstflxdec.c @@ -543,6 +543,7 @@ gst_flxdec_chain (GstPad * pad, GstObject * parent, GstBuffer * buf) memcpy (&flxfh, data, FlxFrameChunkSize); FLX_FRAME_CHUNK_FIX_ENDIANNESS (&flxfh); gst_adapter_unmap (flxdec->adapter); + gst_adapter_flush (flxdec->adapter, FlxFrameChunkSize); switch (flxfh.id) { case FLX_FRAME_TYPE: