Fix thread syntax for JUCE 7.0.8

This commit is contained in:
Jonathan Thomas
2024-12-08 14:01:57 -06:00
parent 2a958bc802
commit 08e863d757

View File

@@ -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;
@@ -179,7 +179,7 @@ namespace openshot
if (video_position < 0) return false;
stopPlayback();
startThread(1);
startThread(Priority::normal);
return true;
}