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>
This commit is contained in:
Guillaume Desmottes 2023-01-16 16:42:56 +01:00
parent 812df78b75
commit 570eb7463a
2 changed files with 2 additions and 2 deletions

View file

@ -2587,7 +2587,7 @@
"controllable": false,
"default": "2000000000",
"max": "18446744073709551615",
"min": "1000000000",
"min": "0",
"mutable": "playing",
"readable": true,
"type": "guint64",

View file

@ -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 {