oggdemux: fix seeking with negative rate with skeleton
authorGuillaume Emont <gemont@igalia.com>
Thu, 7 Oct 2010 17:32:56 +0000 (19:32 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 10 Oct 2010 16:26:13 +0000 (18:26 +0200)
commitb41cd0428956f3ade9b428149e38be8e788556fe
treebb64274cbc42e1e680d6d6052d554bbffc57e661
parentb3629a7e1feb73f8c1b1fbeee5dac38c93c5fec2
oggdemux: fix seeking with negative rate with skeleton

Files with a skeleton, or other files with a stream that ends before the end of
the chain would start playing from the end of the chain when trying to seek with
a negative rate at a position between the end of any stream and the end of the
chain.

This is due to the loop in _do_seek() assuming that pages will be encountered
for all streams shortly after the place where we want to seek, as found by
do_binary_search().

In the first iteration of the loop, stream ends are now checked against the
time of the current page.
ext/ogg/gstoggdemux.c