adaptivedemux2: Fix early seeking
authorEdward Hervey <edward@centricular.com>
Wed, 8 Feb 2023 11:02:45 +0000 (12:02 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Fri, 23 Jun 2023 06:42:03 +0000 (08:42 +0200)
commit12b689f6b5f3b5b8dd496e1a1e528bb96d0e04d1
treef7ed4d03d09c9bfe1aa206226706b8d3e466a05a
parent2dc0e1ac877c7122ff57d557395f768dbc7ec55a
adaptivedemux2: Fix early seeking

When seeking is handled by the collection posting thread, there is a possibility
that some leftover data will be pushed by the stream thread.

Properly detect and reject those early segments (and buffers) by comparing it to
the main segment seqnum

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4922>
subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux-track.c