transcriberbin: Fix passthrough state change

Sync state of child bin appropriately when passthrough is disabled

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1758>
This commit is contained in:
Seungha Yang 2024-08-28 03:25:30 +09:00 committed by GStreamer Marge Bot
parent c57b6c9c0a
commit 0135c4251c

View file

@ -638,6 +638,11 @@ impl TranscriberBin {
for pad in state.audio_sink_pads.values() {
let ps = pad.imp().state.lock().unwrap();
let pad_state = ps.as_ref().unwrap();
pad_state.transcription_bin.set_locked_state(false);
pad_state
.transcription_bin
.sync_state_with_parent()
.unwrap();
let audio_tee_pad = pad_state.audio_tee.request_pad_simple("src_%u").unwrap();
let transcription_sink_pad =
state.transcription_bin.static_pad(&pad.name()).unwrap();