Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2020-07-07 14:29:07 +0300
committerSebastian Dröge <sebastian@centricular.com>2020-07-07 14:29:07 +0300
commit45f547c4be9ce13718fc0e2d0478e808aa27dc57 (patch)
tree0c1a4593733d5fabd209e1c1c4cbb96aff54b302 /utils
parent879767599e97f83400e12e227061c1bb326e3d5d (diff)
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.
Diffstat (limited to 'utils')
-rw-r--r--utils/fallbackswitch/src/fallbacksrc.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/fallbackswitch/src/fallbacksrc.rs b/utils/fallbackswitch/src/fallbacksrc.rs
index e3c397840..4e3a2da81 100644
--- a/utils/fallbackswitch/src/fallbacksrc.rs
+++ b/utils/fallbackswitch/src/fallbacksrc.rs
@@ -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(&[