qtdemux: preserve stop of segment when doing seeks in push mode
authorThiago Santos <thiago.sousa.santos@collabora.com>
Wed, 4 Sep 2013 18:34:35 +0000 (15:34 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Tue, 10 Sep 2013 19:42:36 +0000 (16:42 -0300)
commit33cf8b679dee66afe927cb7e5da446563a11dec6
tree39ff4ced091444f4034e279e20d9b30211fc23b8
parent8db40a8c7f1cac4b361414af56887aa7efac4d05
qtdemux: preserve stop of segment when doing seeks in push mode

When handling seeks in push mode, qtdemux converts the seek to bytes
and pushes upstream. It needs to keep track of the seek and the
subsequent segment to be able to map them back to the requested
seek time and properly preserve the segment stop of the seek.

This is done by using the start offset in bytes of the seek,
that should be the same of the segment from upstream. And this
is also backwards compatible with what qtdemux already was using.

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