matroskademux: Don't parse Tracks element twice
authorJan Schmidt <jan@centricular.com>
Sat, 26 Feb 2022 15:39:28 +0000 (02:39 +1100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 1 Mar 2022 13:17:40 +0000 (13:17 +0000)
commit7efdc9c7f5e5f10b6644732b80769804c018ebe8
treed1bec8f9197bf02df70845de4c0e672adb6684a5
parentd97e480dfe3097e72e6e11d612c42e216b55ba97
matroskademux: Don't parse Tracks element twice

If the tracks element was parsed from the SeekEntry, don't
parse it a second time and recreate tracks, as this
loses any tags that were read using the seek table.

If a genuinely new Tracks element is found, do read that
as it is needed for MSE support.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1798>
subprojects/gst-plugins-good/gst/matroska/matroska-demux.c
subprojects/gst-plugins-good/gst/matroska/matroska-demux.h