mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-25 13:01:07 +00:00
sccparse: Ignore invalid timecode during seek as well
sccparse holds last timecode in order to ignore invalid timecode and fallback to the previous timecode. That should happen when sccparse is handling seek event too. Otherwise single invalid timecode before the target seek position will cause flow error. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1485>
This commit is contained in:
parent
2839e0078b
commit
237f22d131
1 changed files with 4 additions and 0 deletions
|
@ -381,6 +381,10 @@ impl SccParse {
|
|||
|
||||
// Still need to scan lines to find the first buffer
|
||||
if state.seeking {
|
||||
// Remember this timecode in order to fallback to this one
|
||||
// if invalid timecode is detected during scanning
|
||||
state.last_timecode = Some(timecode);
|
||||
|
||||
drop(state);
|
||||
return Ok(self.state.lock().unwrap());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue