From 08c716d11014a60a958b1c135fc223702a5810c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 7 Dec 2022 16:03:28 +0200 Subject: [PATCH] tttocea608: Don't fail if a gap event contains no duration Part-of: --- video/closedcaption/src/tttocea608/imp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/closedcaption/src/tttocea608/imp.rs b/video/closedcaption/src/tttocea608/imp.rs index 2430e58b0..e62e85c57 100644 --- a/video/closedcaption/src/tttocea608/imp.rs +++ b/video/closedcaption/src/tttocea608/imp.rs @@ -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();