transcriberbin: fix linking of user-provided transcriber

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

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)?;