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
path: root/video
diff options
context:
space:
mode:
authorSeungha Yang <seungha@centricular.com>2020-11-30 16:34:48 +0300
committerSebastian Dröge <slomo@coaxion.net>2020-12-01 14:07:34 +0300
commit8b8380992faed4388560f411e7ad0fd0537a12b9 (patch)
treea1f2849be4a95ada0353e9dca7c3add8eaa04d56 /video
parentb81bdd823a7a9f06c7f8f85db8f5918aaea88e9b (diff)
sccparse: Remove unnecessary timecode handling
Wasn't intended to be a part of commit d56ae71e0e4f5465fa32772414ca616ec7bcf0a6
Diffstat (limited to 'video')
-rw-r--r--video/closedcaption/src/scc_parse/imp.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/video/closedcaption/src/scc_parse/imp.rs b/video/closedcaption/src/scc_parse/imp.rs
index a7835dd78..8fc00054d 100644
--- a/video/closedcaption/src/scc_parse/imp.rs
+++ b/video/closedcaption/src/scc_parse/imp.rs
@@ -101,17 +101,12 @@ impl State {
tc.hours,
tc.minutes,
tc.seconds,
- 0,
+ tc.frames,
0,
);
match gst_video::ValidVideoTimeCode::try_from(timecode) {
- Ok(mut timecode) => {
- // Add the number of frames here as sometimes it's higher than 30 and we simply
- // want to wrap around in that case while keeping the timecode valid.
- timecode.add_frames(tc.frames as i64);
- Ok(timecode)
- }
+ Ok(timecode) => Ok(timecode),
Err(timecode) => {
let last_timecode =
self.last_timecode