diff options
author | Arun Raghavan <arun@asymptotic.io> | 2023-12-14 19:25:51 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2023-12-18 11:27:16 +0300 |
commit | 7bb277884bf8b109ec084620f09d736201a2db1d (patch) | |
tree | 2ec5d8a04adb8e3a22bd4c5cdf0f3b2f87a3ff31 | |
parent | 9d802b1969eeb0562df032e41e363df9e449f176 (diff) |
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/1411>
-rw-r--r-- | generic/threadshare/src/udpsrc/imp.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/generic/threadshare/src/udpsrc/imp.rs b/generic/threadshare/src/udpsrc/imp.rs index cfd95de8..550fbd51 100644 --- a/generic/threadshare/src/udpsrc/imp.rs +++ b/generic/threadshare/src/udpsrc/imp.rs @@ -375,6 +375,8 @@ impl TaskImpl for UdpSrcTask { ) })?; + drop(settings); + self.socket = Some( Socket::try_new( self.element.clone().upcast(), |