qtdemux: Clear protection events when we get new ones
authorXabier Rodriguez Calvar <calvaris@igalia.com>
Fri, 9 Dec 2022 10:35:25 +0000 (11:35 +0100)
committerXabier Rodriguez Calvar <calvaris@igalia.com>
Wed, 14 Dec 2022 10:01:23 +0000 (11:01 +0100)
commit87ae60176b8fdb92c008cc604ec9ce23091ff5f7
tree9889e12a94b3fd480d2f077320d59a32d897ed1e
parent993bc8fc01a780314f17f69c310e98b152a06d7c
qtdemux: Clear protection events when we get new ones

If we keep the old events they can be end up being passed to the app, that could
discard the protection information because it has been seen before.

Drive by improvement: use g_queue_clear_full instead of foreach+clear for
protection events.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3547>
subprojects/gst-plugins-good/gst/isomp4/qtdemux.c