Skip to content

Commit

Permalink
Fix thread syntax for JUCE 7.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jonoomph committed Dec 8, 2024
1 parent 2a958bc commit 08e863d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Qt/PlayerPrivate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ namespace openshot

// Start the threads
if (reader->info.has_audio)
audioPlayback->startThread(8);
audioPlayback->startThread(Priority::highest);
if (reader->info.has_video) {
videoCache->startThread(2);
videoPlayback->startThread(4);
videoCache->startThread(Priority::high);
videoPlayback->startThread(Priority::high);
}

using std::chrono::duration_cast;
Expand Down Expand Up @@ -179,7 +179,7 @@ namespace openshot
if (video_position < 0) return false;

stopPlayback();
startThread(1);
startThread(Priority::normal);
return true;
}

Expand Down

0 comments on commit 08e863d

Please sign in to comment.