mcc_parse: save the last_timecode to have a fallback

If the current timecode can't be parsed, the plugin falls back
to last knonw timecode to at least have something. The code
that does this already existed but the last_timecode was just
never set.
This commit is contained in:
Jordan Petridis 2019-01-26 01:41:12 +02:00 committed by Jordan Petridis
parent 01911b0ca7
commit 23071c1e0e
No known key found for this signature in database
GPG key ID: E8523968931763BE

View file

@ -434,6 +434,9 @@ impl MccParse {
state.add_buffer_metadata(element, &mut buffer, &timecode, &framerate);
// Update the last_timecode to the current one
state.last_timecode = Some(timecode);
// Drop our state mutex while we push out buffers or events
drop(state);