aggregator: Take pad lock while releasing buffers when removing pads
authorSebastian Dröge <sebastian@centricular.com>
Thu, 19 Oct 2023 16:43:26 +0000 (19:43 +0300)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 25 Oct 2023 13:58:06 +0000 (14:58 +0100)
commit0596d637e2aecd542f3d1b98da7d8ed7d323d556
treefde342a240a0058be7678670784cfcf33f49df1b
parent8419c1e6dc63c15d9b2a0992cebf8cc93d7a2fba
aggregator: Take pad lock while releasing buffers when removing pads

Accessing the buffers in all other places requires the pad lock and not
taking it here can cause access to already freed buffers if there's
concurrent access from another thread.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5553>
subprojects/gstreamer/libs/gst/base/gstaggregator.c