qtdemux: Update segment.start after key-unit seek
authorHyunjun Ko <zzoon.ko@samsung.com>
Fri, 10 Apr 2015 00:17:26 +0000 (09:17 +0900)
committerThiago Santos <thiagoss@osg.samsung.com>
Fri, 10 Apr 2015 13:12:50 +0000 (10:12 -0300)
commit7fbd1b472fd016ed3293a360123b1dd55bee18e4
tree34d0e67388ef007c4177a983182459e9d554aeda
parent39c09284e27461c5ca095055750b47f37a3971fe
qtdemux: Update segment.start after key-unit seek

When doing key uint seek, qtdemux calls gst_qtdemux_adjust_seek
to get proper offset. And then this offset is set to
segment.position and segment.time in gst_qtdemux_perform_seek but
segment.start is not updated.

After that, application sends segment query,
qtdemux sets start and stop to query using gst_segment_to_stream_time. Due
to the wrong value in segment.start, the stop position is smaller than
it should.

https://bugzilla.gnome.org/show_bug.cgi?id=746822
gst/isomp4/qtdemux.c