threadshare: Fix a deadlock in used-socket notification

This manifests in a gst-launch-1.0 pipeline using ts-udpsrc, since
notification of used-socket results in the property being read by the
application, and the settings lock causes a deadlock.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1408>
This commit is contained in:
Arun Raghavan 2023-12-14 11:25:51 -05:00
parent 9b1c9b1892
commit 1faef49b51

View file

@ -375,6 +375,8 @@ impl TaskImpl for UdpSrcTask {
)
})?;
drop(settings);
self.socket = Some(
Socket::try_new(
self.element.clone().upcast(),