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:
Jonathan Thomas
2015-02-19 01:03:22 -06:00
parent efa37ea410
commit 86561aed22
7 changed files with 330 additions and 14 deletions

View File

@@ -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;
}
}