adaptivedemux: Handle prepared streams on seeks
authorEdward Hervey <edward@centricular.com>
Tue, 9 May 2017 09:41:49 +0000 (11:41 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Wed, 12 Jul 2017 08:13:39 +0000 (10:13 +0200)
commit1df725e5cdc53fbe9d7f2845e5418abea5673080
treee3851cdf7d7b5acd74e5686d56eb1e807d2d631a
parentb7fc75c8835518d5cd705512690293fad0368066
adaptivedemux: Handle prepared streams on seeks

This is a race that was exposed by the {hls|dash}.scrub_forward_seeking
validate test.

The "race" is that a subclass might want to change format, causing
a new stream to be created (but not exposed/switched yet) and put on the
prepared_streams list. That stream will have values (including pending
segment) from the pre-seek state.

Before the stream is exposed/switched, a new seek comes in and the stream
values get updated ... but the ones that will be changed don't get updated
causing them to push out wrong segments once they are exposed.

https://bugzilla.gnome.org/show_bug.cgi?id=773159
gst-libs/gst/adaptivedemux/gstadaptivedemux.c