transcriberbin: fix linking of user-provided transcriber

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1836>
This commit is contained in:
Mathieu Duponchelle 2024-10-01 16:34:18 +02:00 committed by GStreamer Marge Bot
parent ed32f96fa3
commit 5501eacb6c

View file

@ -737,7 +737,8 @@ impl TranscriberBin {
}
if let Some(ref transcriber) = pad_state.transcriber {
state.transcription_bin.add(transcriber)?;
gst::debug!(CAT, imp = self, "Linking new transcriber {transcriber:?}");
pad_state.transcription_bin.add(transcriber)?;
transcriber.sync_state_with_parent().unwrap();
pad_state.transcriber_aconv.link(transcriber)?;