multiqueue: Ensure peer pad exists when iterating internal links
authorJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Thu, 6 May 2021 10:54:46 +0000 (12:54 +0200)
committerJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Thu, 6 May 2021 11:08:26 +0000 (13:08 +0200)
commit4ad1c8b7c92d36fb454f7bb83c6ce08364eb7172
treed96bf07f9a5a8591120023c04160e9728a4b76cb
parentb48e32ab00acdc2d3d177043012dd18ae8a4285c
multiqueue: Ensure peer pad exists when iterating internal links

The pads can be NULL when we're racing with pad removal, e.g. when the
pads get removed between `gst_pad_iterate_internal_links` acquiring the
parent element and `gst_multi_queue_iterate_internal_links` locking the
multiqueue.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/810>
plugins/elements/gstmultiqueue.c