mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-27 04:20:28 +00:00
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:
parent
879767599e
commit
45f547c4be
1 changed files with 7 additions and 0 deletions
|
@ -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(&[
|
||||
|
|
Loading…
Reference in a new issue