flxdec: Flush data from adapter after reading it

Otherwise we're going in an infinite loop, reading the same data
over and over again.
This commit is contained in:
Sebastian Dröge 2013-05-24 19:31:14 +02:00
parent a62af107ae
commit ae3ee32f42

View file

@ -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: