You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user