mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-23 10:30:40 +00:00
sccparse: Remove unnecessary timecode handling
Wasn't intended to be a part of commit d56ae71e0e
This commit is contained in:
parent
b81bdd823a
commit
8b8380992f
1 changed files with 2 additions and 7 deletions
|
@ -101,17 +101,12 @@ impl State {
|
||||||
tc.hours,
|
tc.hours,
|
||||||
tc.minutes,
|
tc.minutes,
|
||||||
tc.seconds,
|
tc.seconds,
|
||||||
0,
|
tc.frames,
|
||||||
0,
|
0,
|
||||||
);
|
);
|
||||||
|
|
||||||
match gst_video::ValidVideoTimeCode::try_from(timecode) {
|
match gst_video::ValidVideoTimeCode::try_from(timecode) {
|
||||||
Ok(mut timecode) => {
|
Ok(timecode) => Ok(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)
|
|
||||||
}
|
|
||||||
Err(timecode) => {
|
Err(timecode) => {
|
||||||
let last_timecode =
|
let last_timecode =
|
||||||
self.last_timecode
|
self.last_timecode
|
||||||
|
|
Loading…
Reference in a new issue