mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-22 11:30:59 +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/1002>
This commit is contained in:
parent
99a1e30ab0
commit
08c716d110
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