diff options
author | Mathieu Duponchelle <mathieu@centricular.com> | 2023-03-25 01:35:10 +0300 |
---|---|---|
committer | Mathieu Duponchelle <mathieu@centricular.com> | 2023-03-25 01:36:30 +0300 |
commit | 002e22510fbe9957ddb437bd0874795a72cd0da2 (patch) | |
tree | 51577570b939672fceaa8e4a9b67bf603119a62b /video/closedcaption | |
parent | 93f61483b56133e23721ec18c9569ce3af91bcbe (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/1148>
Diffstat (limited to 'video/closedcaption')
-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 997c94512..2b7096e8d 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, |