mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-06-07 07:58:53 +00:00
fallbacksrc: Configure clocksync
It's missed in the previous refactoring
This commit is contained in:
parent
3eaf29b71f
commit
953ae18f1d
1 changed files with 3 additions and 4 deletions
|
@ -1802,16 +1802,15 @@ impl FallbackSrc {
|
||||||
["Failed to change imagefreeze state"]
|
["Failed to change imagefreeze state"]
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
converters.link(&imagefreeze).unwrap();
|
gst::Element::link_many(&[&converters, &imagefreeze, &queue, &clocksync]).unwrap();
|
||||||
imagefreeze.link(&queue).unwrap();
|
|
||||||
Some(imagefreeze)
|
Some(imagefreeze)
|
||||||
} else {
|
} else {
|
||||||
converters.link(&queue).unwrap();
|
gst::Element::link_many(&[&converters, &queue, &clocksync]).unwrap();
|
||||||
None
|
None
|
||||||
};
|
};
|
||||||
|
|
||||||
let ghostpad =
|
let ghostpad =
|
||||||
gst::GhostPad::with_target(Some(type_), &queue.static_pad("src").unwrap()).unwrap();
|
gst::GhostPad::with_target(Some(type_), &clocksync.static_pad("src").unwrap()).unwrap();
|
||||||
let _ = ghostpad.set_active(true);
|
let _ = ghostpad.set_active(true);
|
||||||
source.source.add_pad(&ghostpad).unwrap();
|
source.source.add_pad(&ghostpad).unwrap();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue