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/1508>
This commit is contained in:
parent
7a90e96332
commit
2cb76f2ff2
1 changed files with 4 additions and 0 deletions
|
@ -378,6 +378,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