diff options
author | Seungha Yang <seungha@centricular.com> | 2022-10-18 18:35:56 +0300 |
---|---|---|
committer | Sebastian Dröge <slomo@coaxion.net> | 2022-10-18 19:27:41 +0300 |
commit | 953ae18f1d311380faa9b90c6d87cb9be3d98549 (patch) | |
tree | 96747c88bcf955c6378b19f6091ecd6c7e78b5d5 | |
parent | 3eaf29b71f630bc31ff8a9f57ac1c8d1e0b03e24 (diff) |
fallbacksrc: Configure clocksync
It's missed in the previous refactoring
-rw-r--r-- | utils/fallbackswitch/src/fallbacksrc/imp.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/utils/fallbackswitch/src/fallbacksrc/imp.rs b/utils/fallbackswitch/src/fallbacksrc/imp.rs index bbdb498b6..e8f2ff939 100644 --- a/utils/fallbackswitch/src/fallbacksrc/imp.rs +++ b/utils/fallbackswitch/src/fallbacksrc/imp.rs @@ -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(); |