matroskademux: Handle element's duration query.
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Mon, 14 Nov 2022 11:51:19 +0000 (12:51 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 14 Nov 2022 15:10:44 +0000 (15:10 +0000)
commit64cb38685b2c93393fb7ba08e4810c7ed7d65841
tree57a440572be5b4b0d3e3e0b9a561f65abc125576
parent452890093dee82d1d1ad1c4155beabcecb50c660
matroskademux: Handle element's duration query.

This is small regression from commit f7abd81a.

When calling `gst_element_query()` no pad is associated with that query, but the
current code always forwards the query to the associated pad, which is NULL in
previous case. This patch checks for the pad before forwarding the query.

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