diff options
author | Mathieu Duponchelle <mathieu@centricular.com> | 2023-03-25 01:35:10 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2023-04-05 18:15:26 +0300 |
commit | 1219c27fa44b112111edf6ce4412030a6d0623ee (patch) | |
tree | e069eddc7977e3463db956d8a89761d7d3710e28 /video | |
parent | bd6b2e0fab19f56d4c2050f088a12bd3ebe1691d (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/1161>
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 678d67a52..73f6fbd03 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, |