videodecoder: handle buffer's flags at offset
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Thu, 9 Apr 2015 17:09:17 +0000 (19:09 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 9 Jun 2016 16:13:46 +0000 (19:13 +0300)
commit8b8708f9464a6bed38b5ccf24eb09279df2697e9
treedf1711863f1911b2aef4c13179b03defd908577f
parent75906f53d172dfbd646e695005f460691fe83a31
videodecoder: handle buffer's flags at offset

For reverse playback it is important to handle correctly the frame sync
points, which is set when the input buffer doesn't have the DELTA_UNIT flag.

This is handled correctly when decoder is packetized, but when it is not the
frame's sync point is not copied, and the reverse playback never decodes frame
batches.

The current patch adds the buffer's flags to the Timestamp list, where the
timestamp and duration of the input buffers are hold.
gst-libs/gst/video/gstvideodecoder.c