mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-23 02:26:35 +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"]
|
||||
));
|
||||
}
|
||||
converters.link(&imagefreeze).unwrap();
|
||||
imagefreeze.link(&queue).unwrap();
|
||||
gst::Element::link_many(&[&converters, &imagefreeze, &queue, &clocksync]).unwrap();
|
||||
Some(imagefreeze)
|
||||
} else {
|
||||
converters.link(&queue).unwrap();
|
||||
gst::Element::link_many(&[&converters, &queue, &clocksync]).unwrap();
|
||||
None
|
||||
};
|
||||
|
||||
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);
|
||||
source.source.add_pad(&ghostpad).unwrap();
|
||||
|
||||
|
|
Loading…
Reference in a new issue