Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2020-12-30 14:04:55 +0300
committerSebastian Dröge <sebastian@centricular.com>2020-12-30 14:04:55 +0300
commit3b739530bf8ec636b5163806016e8047ed10c974 (patch)
treeb837c9c603e897c0c4c3ba978127fc0c6bc1e196 /video/closedcaption
parent02310d8720dbabcd50eef99564541ff5e2f5cfc5 (diff)
sccparse: Parse timecode only once when seeking
Also avoids an unwrap().
Diffstat (limited to 'video/closedcaption')
-rw-r--r--video/closedcaption/src/scc_parse/imp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/closedcaption/src/scc_parse/imp.rs b/video/closedcaption/src/scc_parse/imp.rs
index 1cdf8e240..ee8631471 100644
--- a/video/closedcaption/src/scc_parse/imp.rs
+++ b/video/closedcaption/src/scc_parse/imp.rs
@@ -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());