From f56f40a943432a14dea89bdb2a6a359cb44065f3 Mon Sep 17 00:00:00 2001 From: Vivia Nikolaidou Date: Fri, 31 Mar 2023 17:40:32 +0300 Subject: [PATCH] livesync: Actually assume zero upstream latency when query fails The code said "assuming zero" but left latency at None instead of Some(0), failing to unwrap the value later. Part-of: --- utils/livesync/src/livesync/imp.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/livesync/src/livesync/imp.rs b/utils/livesync/src/livesync/imp.rs index 86de3b86..99eac29f 100644 --- a/utils/livesync/src/livesync/imp.rs +++ b/utils/livesync/src/livesync/imp.rs @@ -814,6 +814,7 @@ impl LiveSync { imp: self, "Can't query upstream latency -- assuming zero" ); + state.upstream_latency = Some(gst::ClockTime::ZERO); } }