mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
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:
parent
a62af107ae
commit
ae3ee32f42
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue