You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Fixed a huge bug when closing a reader and re-opening it. Added some new unit tests to test for that bug, as well as check the ordering of layers and effects. Improved opening and closing of openshot::Clip->Reader() to better support multiple threads.
This commit is contained in:
@@ -237,6 +237,8 @@ void FFmpegReader::Close()
|
||||
// Clear processed lists
|
||||
processed_video_frames.clear();
|
||||
processed_audio_frames.clear();
|
||||
processing_video_frames.clear();
|
||||
processing_audio_frames.clear();
|
||||
|
||||
// Clear debug json
|
||||
debug_root.clear();
|
||||
@@ -247,7 +249,12 @@ void FFmpegReader::Close()
|
||||
|
||||
// Mark as "closed"
|
||||
is_open = false;
|
||||
|
||||
// Reset some variables
|
||||
last_frame = 0;
|
||||
largest_frame_processed = 0;
|
||||
seek_audio_frame_found = 0;
|
||||
seek_video_frame_found = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user