analog to fix for matroska-demux commit f3c126d07c Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8240>
f3c126d07c