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/1153>
This commit is contained in:
Vivia Nikolaidou 2023-03-31 17:40:32 +03:00
parent 15e1844956
commit c6e1efa0fe

View file

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