Skip to content

Commit

Permalink
Merging this PR from #416 into release branch. Tested locally and did…
Browse files Browse the repository at this point in the history
… not see any crazy memory demands from this.
  • Loading branch information
jonoomph committed Feb 7, 2020
1 parent f801af2 commit eb701a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Qt/VideoCacheThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@
*/

#include "../../include/Qt/VideoCacheThread.h"
#include <algorithm>

namespace openshot
{
// Constructor
VideoCacheThread::VideoCacheThread()
: Thread("video-cache"), speed(1), is_playing(false), position(1)
, reader(NULL), max_frames(OPEN_MP_NUM_PROCESSORS * 2), current_display_frame(1)
, reader(NULL), max_frames(std::min(OPEN_MP_NUM_PROCESSORS * 8, 64)), current_display_frame(1)
{
}

Expand Down

0 comments on commit eb701a5

Please sign in to comment.