gstpad: Recheck pads when linking after temporary unlock
authorDaniel Moberg <daniemob@axis.com>
Wed, 15 Nov 2023 10:03:52 +0000 (10:03 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 16 Nov 2023 10:21:38 +0000 (10:21 +0000)
commit1eca0a1049bb2aa25dd1199480b3e1deb9a1b9b0
tree30e44404b8296b2a1641263090f950d4844c4c03
parent15e9b513da660914282bb29b284dad871d7c7453
gstpad: Recheck pads when linking after temporary unlock

This commit makes sure that pads are valid for linking
after the pads has been temporarily unlocked in the linking process.
Not doing this opens up for a race condition where
pads potentially can be linked twice.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5678>
subprojects/gstreamer/gst/gstpad.c