diff options
author | Mathieu Duponchelle <mathieu@centricular.com> | 2023-03-25 01:35:10 +0300 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2023-04-05 18:12:39 +0300 |
commit | 97bcab5da074e46c7bdb2e3e23432da5594c50d1 (patch) | |
tree | 1cbd9dd4569ac6b561e54b3c1f010ddf51795c29 /video | |
parent | 82bc045aba5e4bde42b235ce68a7525f09484a18 (diff) |
transcriberbin: fix deadlock on construction error
Don't post an error message on the bus while holding the state lock
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1160>
Diffstat (limited to 'video')
-rw-r--r-- | video/closedcaption/src/transcriberbin/imp.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/closedcaption/src/transcriberbin/imp.rs b/video/closedcaption/src/transcriberbin/imp.rs index 5a94b287..f45f0c65 100644 --- a/video/closedcaption/src/transcriberbin/imp.rs +++ b/video/closedcaption/src/transcriberbin/imp.rs @@ -853,6 +853,7 @@ impl ElementImpl for TranscriberBin { self.setup_transcription(state); } } else { + drop(state); gst::element_imp_error!( self, gst::StreamError::Failed, |