mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-26 05:21:00 +00:00
sccparse: Parse timecode only once when seeking
Also avoids an unwrap().
This commit is contained in:
parent
02310d8720
commit
3b739530bf
1 changed files with 1 additions and 1 deletions
|
@ -370,7 +370,7 @@ impl SccParse {
|
|||
// If we are in the middle of seeking, check whether this line
|
||||
// contains start frame, and if so, unset seeking flag
|
||||
let num_bufs = (data.len() / 2) as i64;
|
||||
let mut end_timecode = parse_timecode(framerate, &tc).unwrap();
|
||||
let mut end_timecode = timecode.clone();
|
||||
// add one more frame here so that add duration of the last frame
|
||||
end_timecode.add_frames(num_bufs + 1);
|
||||
let stop_time = gst::ClockTime::from(end_timecode.nsec_since_daily_jam());
|
||||
|
|
Loading…
Reference in a new issue