mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-09-02 09:43:48 +00:00
tracers: buffer-lateness: don't panic on add overflow
Better not producing logs than panicking. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2149>
This commit is contained in:
parent
333e88012e
commit
76a48baa32
1 changed files with 3 additions and 1 deletions
|
@ -359,7 +359,9 @@ impl TracerImpl for BufferLateness {
|
|||
None => return,
|
||||
};
|
||||
|
||||
let buffer_clock_time = running_time + base_time;
|
||||
let Some(buffer_clock_time) = running_time.checked_add(base_time) else {
|
||||
return;
|
||||
};
|
||||
let pipeline_clock_time = match clock.time() {
|
||||
Some(time) => time,
|
||||
None => return,
|
||||
|
|
Loading…
Reference in a new issue