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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1161>
This commit is contained in:
Vivia Nikolaidou 2023-03-31 17:40:32 +03:00 committed by Sebastian Dröge
parent c2d6273786
commit f56f40a943

View file

@ -814,6 +814,7 @@ impl LiveSync {
imp: self,
"Can't query upstream latency -- assuming zero"
);
state.upstream_latency = Some(gst::ClockTime::ZERO);
}
}