Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sdroege/gst-plugin-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Raghavan <arun@asymptotic.io>2023-12-14 19:25:51 +0300
committerArun Raghavan <arun@asymptotic.io>2023-12-14 19:29:10 +0300
commit1faef49b51746a82c5b99a09a1034220cf92af9d (patch)
tree705eebc5b52d2a4583ebb8c11f932ec6e0eb9580
parent9b1c9b18921dbafbd73cd6cb8224b664cf3f3001 (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/1408>
-rw-r--r--generic/threadshare/src/udpsrc/imp.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/generic/threadshare/src/udpsrc/imp.rs b/generic/threadshare/src/udpsrc/imp.rs
index 997ca1f3..39bc9fbb 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(),