adaptivedemux2: Handle early key-unit seek
authorEdward Hervey <edward@centricular.com>
Wed, 8 Feb 2023 16:24:18 +0000 (17:24 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Fri, 23 Jun 2023 06:51:05 +0000 (08:51 +0200)
commitf1e2202b237114fde202e7e03ccd9b8c159bcec9
tree21aeb852f1c478195bdc8fee2d23c6643d31b45e
parent12b689f6b5f3b5b8dd496e1a1e528bb96d0e04d1
adaptivedemux2: Handle early key-unit seek

Is a seek is done on stream-collection post, there are no selected streams
yet. Therefore none would be chosen to adjust the key-unit seek.

If no streams are selected, fallback to a default stream (i.e. one which has
track(s) with GST_STREAM_FLAG_SELECT).

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