Improved changing Reader() on the QtPlayer class, and made many thread safety improvements for the FrameMapper.GetFrame method. Also improved the destructors and Close() methods of FFmpegReader and FrameMapper. Some audio-related bug fixes also, related to audio playback.

This commit is contained in:
Jonathan Thomas
2015-12-24 16:44:45 -06:00
parent 90db687598
commit 2f8c4161df
8 changed files with 121 additions and 78 deletions

View File

@@ -84,7 +84,7 @@ namespace openshot
// Cache frames before the other threads need them
// Cache frames up to the max frames
while ((position - current_display_frame) < max_frames)
while (speed == 1 && (position - current_display_frame) < max_frames)
{
// Only cache up till the max_frames amount... then sleep
try
@@ -102,6 +102,9 @@ namespace openshot
// Increment frame number
position++;
}
// Sleep for 1 frame length
sleep(frame_time);
}
return;