mpegts: Don't add non-padded streams to collection on updates
authorEdward Hervey <edward@centricular.com>
Wed, 9 Dec 2020 08:14:12 +0000 (09:14 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Mon, 14 Dec 2020 16:57:40 +0000 (17:57 +0100)
commitfe6ae27046000613a90d15772f47e123c2389f52
tree5374dc480e8a1095406b2f46145d20b2a693844f
parent3cb32df838a0a946e3824a55fe092fde20c436b4
mpegts: Don't add non-padded streams to collection on updates

When carrying over existing GstStream to a new GstStreamCollection we need to
check whether they *actually* were being used in the previous collection.

This avoids adding unknown streams (metadata, PSI, etc...) to the collection on
updates.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1880>
gst/mpegtsdemux/mpegtsbase.c
gst/mpegtsdemux/mpegtsbase.h