projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a62af10
)
flxdec: Flush data from adapter after reading it
author
Sebastian Dröge
<slomo@circular-chaos.org>
Fri, 24 May 2013 17:31:14 +0000
(19:31 +0200)
committer
Sebastian Dröge
<slomo@circular-chaos.org>
Fri, 24 May 2013 17:31:14 +0000
(19:31 +0200)
Otherwise we're going in an infinite loop, reading the same data
over and over again.
gst/flx/gstflxdec.c
patch
|
blob
|
history
diff --git
a/gst/flx/gstflxdec.c
b/gst/flx/gstflxdec.c
index 5c90a34d98516adede9754b85c6ce852676415ef..0f17e75178c22c319f667e449f13cef2f20f811d 100644
(file)
--- 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: