mxfdemux: Use KLV for position/content tracking
authorEdward Hervey <edward@centricular.com>
Thu, 15 Jul 2021 08:45:46 +0000 (10:45 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Wed, 21 Jul 2021 14:33:19 +0000 (14:33 +0000)
commit38ec61c58647e5185bcc01c888e711b05326a1a0
treee2930dc33bed0d06b47cd308818057576849156c
parent40d369005455e0e17fb34043fcad88c414d7cfba
mxfdemux: Use KLV for position/content tracking

* For pull-based, this avoids pulling content if it's not needed (ex: skipping filler
packet, not downloading the content if we only need to know if/where an essence
packet is, etc...). Allows reducing i/o usage to the minimum.

* This also allows doing sub-klv position tracking, and opens the way for
non-frame-wrapping handling

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