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
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@onestream.live>2023-01-16 18:42:56 +0300
committerGuillaume Desmottes <guillaume.desmottes@onestream.live>2023-01-17 12:54:05 +0300
commit570eb7463a3bddea1e30370f09a30da1e4bf3131 (patch)
tree92eca7ce76fe1e44b4848ccc70ddef2078f958ca /utils/livesync
parent812df78b750b562a00aff290fc73221a6973c350 (diff)
livesync: fix late-threshold property min value
The code is handling 0 as "always over threshold" but it was not possible to set the property to 0. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1049>
Diffstat (limited to 'utils/livesync')
-rw-r--r--utils/livesync/src/livesync/imp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/livesync/src/livesync/imp.rs b/utils/livesync/src/livesync/imp.rs
index 63c15678b..0840334fb 100644
--- a/utils/livesync/src/livesync/imp.rs
+++ b/utils/livesync/src/livesync/imp.rs
@@ -103,7 +103,7 @@ const PROP_SINGLE_SEGMENT: &str = "single-segment";
const DEFAULT_LATENCY: gst::ClockTime = gst::ClockTime::ZERO;
const DEFAULT_DURATION: gst::ClockTime = gst::ClockTime::from_mseconds(100);
-const MINIMUM_LATE_THRESHOLD: gst::ClockTime = gst::ClockTime::from_seconds(1);
+const MINIMUM_LATE_THRESHOLD: gst::ClockTime = gst::ClockTime::ZERO;
const DEFAULT_LATE_THRESHOLD: Option<gst::ClockTime> = Some(gst::ClockTime::from_seconds(2));
impl Default for State {