matroska-demux: Properly handle early time-based segments
authorEdward Hervey <edward@centricular.com>
Wed, 21 Jun 2023 15:05:47 +0000 (17:05 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Fri, 23 Jun 2023 06:55:47 +0000 (08:55 +0200)
commitbf0446ad7384e68307fc680c4cbf11cd0f7a5665
treee0c4152c4be592effdfd4eed2ff98c85443a8383
parent8e4bfd896b30529f04e272a59d7265030c4a5f60
matroska-demux: Properly handle early time-based segments

Refusing an incoming segment in < GST_MATROSKA_READ_STATE_DATA should only be
done if the incoming segment is not in GST_FORMAT_TIME.

In GST_FORMAT_TIME, we are just storing the values and returning, so we can
invert the order of the checks.

Fixes proper segment propagation in matroska/webm DASH use-cases

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4922>
subprojects/gst-integration-testsuites/testsuites/validate/dash/seek_with_stop_between_fragments/flow-expectations/log-i-sink-expected
subprojects/gst-plugins-good/gst/matroska/matroska-demux.c