mxfdemux: Refactor pull seek
authorEdward Hervey <edward@centricular.com>
Thu, 15 Jul 2021 08:16:34 +0000 (10:16 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Wed, 21 Jul 2021 14:33:19 +0000 (14:33 +0000)
commit3303e0ebd26232f5fc44fb4709369ac97aac787d
tree131ca22cbb236566f38ac2b0f376cccf01a51044
parent8817b08d5e36b4f2a4c12eaf74db0f6d6725a81b
mxfdemux: Refactor pull seek

In order to figure out the exact start position (backed by a keyframe) accross
all tracks, we first figure out the backing keyframe position, and *then* seek
to that position.

Avoids ending up in situations where we would properly seek to the backing
keyframe on video ... but not on the audio streams (they would have been set to
the original non-keyframe position). Fixes key-unit seeking.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2371>
gst/mxf/mxfdemux.c