qtdemux: fix reverse playback of fragmented media
authorThiago Santos <thiagoss@osg.samsung.com>
Sat, 23 May 2015 17:36:41 +0000 (14:36 -0300)
committerThiago Santos <thiagoss@osg.samsung.com>
Mon, 25 May 2015 11:46:18 +0000 (08:46 -0300)
commitfc0a1845920f4fe6c21e0fe5edf87c43e222f51d
tree93aff35b87606581df5da10d1c4d17fc60b74ef1
parentd3997773fc61395418055dfa4c7cda85858840fa
qtdemux: fix reverse playback of fragmented media

qtdemux creates a samples array and gets the timestamps for buffers by
accumulating their durations. When doing reverse playback of fragments,
accumulating samples will lead to wrong timestamps as the timestamps
should go decreasing from fragment to fragment and the accumulation
will produce wrong results.

In this case, when receiving a discont for fragmented reverse playback,
the previous samples information should be flushed before new data
is processed.
gst/isomp4/qtdemux.c