tttocea608: Don't fail if a gap event contains no duration

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1002>
This commit is contained in:
Sebastian Dröge 2022-12-07 16:03:28 +02:00 committed by GStreamer Marge Bot
parent 99a1e30ab0
commit 08c716d110

View file

@ -900,7 +900,7 @@ impl TtToCea608 {
);
}
let frame_no = (timestamp + duration.unwrap())
let frame_no = (timestamp + duration.unwrap_or(gst::ClockTime::ZERO))
.mul_div_round(fps_n, fps_d)
.unwrap()
.seconds();