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>
This commit is contained in:
Mathieu Duponchelle 2023-03-24 23:35:10 +01:00 committed by Sebastian Dröge
parent bd6b2e0fab
commit 1219c27fa4

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,