mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-30 07:20:59 +00:00
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:
parent
01911b0ca7
commit
23071c1e0e
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue