mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-26 05:21:00 +00:00
transcriberbin: fix regression with > 1 translation languages
By making sure to expose uniquely named pads on the inner transcription bins. Fixes: https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/552 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1593>
This commit is contained in:
parent
30252a1b2e
commit
0e85973e94
1 changed files with 3 additions and 1 deletions
|
@ -300,7 +300,9 @@ impl TranscriberBin {
|
|||
channel.link_transcriber(&pad_state.transcriber)?;
|
||||
|
||||
let srcpad =
|
||||
gst::GhostPad::with_target(&channel.bin.static_pad("src").unwrap()).unwrap();
|
||||
gst::GhostPad::builder_with_target(&channel.bin.static_pad("src").unwrap()).unwrap()
|
||||
.name(format!("src_{}", channel.language))
|
||||
.build();
|
||||
|
||||
pad_state.transcription_bin.add_pad(&srcpad)?;
|
||||
if state.ccmux.static_pad(&channel.ccmux_pad_name).is_none() {
|
||||
|
|
Loading…
Reference in a new issue