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>
This commit is contained in:
Mathieu Duponchelle 2023-03-24 23:35:10 +01:00
parent 93f61483b5
commit 002e22510f

View file

@ -853,6 +853,7 @@ impl ElementImpl for TranscriberBin {
self.setup_transcription(state);
}
} else {
drop(state);
gst::element_imp_error!(
self,
gst::StreamError::Failed,