transcriberbin: add debug

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1831>
This commit is contained in:
Mathieu Duponchelle 2024-10-01 16:33:28 +02:00 committed by GStreamer Marge Bot
parent ccb9610d6b
commit 8fae519c8d

View file

@ -62,6 +62,12 @@ impl TranscriptionChannel {
}
};
gst::debug!(
CAT,
obj = transcriber,
"Linking transcriber source pad {transcriber_src_pad:?} to channel"
);
transcriber_src_pad.link(&self.bin.static_pad("sink").unwrap())?;
Ok(())
@ -710,6 +716,11 @@ impl TranscriberBin {
);
if let Some(old_transcriber) = old_transcriber {
gst::debug!(
CAT,
imp = self,
"Unlinking old transcriber {old_transcriber:?}"
);
pad_state.transcriber_aconv.unlink(old_transcriber);
for channel in pad_state.transcription_channels.values() {
old_transcriber.unlink(&channel.bin);