fallbacksrc: Configure up to 5s of buffering on the fallback stream

imagefreeze in live mode can handle only up to 1 frame of buffering
itself.
This commit is contained in:
Sebastian Dröge 2020-07-07 14:29:07 +03:00
parent 879767599e
commit 45f547c4be

View file

@ -663,6 +663,13 @@ impl FallbackSrc {
.expect("No clocksync or identity found");
let queue = gst::ElementFactory::make("queue", Some("fallback_queue"))
.expect("No queue found");
queue
.set_properties(&[
("max-size-buffers", &0u32),
("max-size-bytes", &0u32),
("max-size-time", &(5 * gst::SECOND)),
])
.unwrap();
input
.add_many(&[