playbin3: Hold playbin lock on pad-added
authorJan Schmidt <jan@centricular.com>
Mon, 17 Jan 2022 18:48:08 +0000 (05:48 +1100)
committerEdward Hervey <bilboed@bilboed.com>
Fri, 11 Mar 2022 14:02:02 +0000 (15:02 +0100)
commit52d9614d47f1a88f5939abf5bc273dcda777d2e8
tree1953326030020caf60d7b169c1e18ae969a03f21
parent9ebb4505db6744640280c3e0cbdc611d041fd02a
playbin3: Hold playbin lock on pad-added

Take the playbin lock when accessing the combiner
to add a new pad to link to. Fixes races against
streams-selected messages triggering reconfiguration.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1900>
subprojects/gst-plugins-base/gst/playback/gstplaybin3.c