You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
When a seek fails, disable seeking with FFmpegReader. This fixes lots of issues with image sequences, but needs more testing to see if it causes issues with normal video files.
This commit is contained in:
@@ -1304,6 +1304,14 @@ void FFmpegReader::Seek(long int requested_frame) throw(TooManySeeks)
|
||||
is_seeking = false;
|
||||
seeking_pts = 0;
|
||||
seeking_frame = 0;
|
||||
|
||||
// dislable seeking for this reader (since it failed)
|
||||
// TODO: Find a safer way to do this... not sure how common it is for a seek to fail.
|
||||
enable_seek = false;
|
||||
|
||||
// Close and re-open file (basically seeking to frame 1)
|
||||
Close();
|
||||
Open();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user