mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-24 18:08:15 +00:00
tttocea608: Don't fail if a gap event contains no duration
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1008>
This commit is contained in:
parent
d79edce517
commit
fd5b31fb43
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue