input-selector: Take the object lock while iterating sinkpads
authorJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Wed, 18 Jan 2023 15:07:39 +0000 (16:07 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 18 Jan 2023 16:21:12 +0000 (16:21 +0000)
commitb0e55caf0d2257dfaf4fdd1b44e18de118e04783
tree811805986a2af83ec83dff8faacb9444061a3c8c
parent81b726344e1fd3a6ccc26034b42a36b40c0cc99f
input-selector: Take the object lock while iterating sinkpads

Otherwise we can race with pad removal and crash from use-after-free.

Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1717
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3745>
subprojects/gstreamer/plugins/elements/gstinputselector.c