sccparse: Remove unnecessary timecode handling

Wasn't intended to be a part of commit d56ae71e0e
This commit is contained in:
Seungha Yang 2020-11-30 22:34:48 +09:00 committed by Sebastian Dröge
parent b81bdd823a
commit 8b8380992f

View file

@ -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