Skip to content

Commit 08e863d

Browse files
committed
Fix thread syntax for JUCE 7.0.8
1 parent 2a958bc commit 08e863d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Qt/PlayerPrivate.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ namespace openshot
4949

5050
// Start the threads
5151
if (reader->info.has_audio)
52-
audioPlayback->startThread(8);
52+
audioPlayback->startThread(Priority::highest);
5353
if (reader->info.has_video) {
54-
videoCache->startThread(2);
55-
videoPlayback->startThread(4);
54+
videoCache->startThread(Priority::high);
55+
videoPlayback->startThread(Priority::high);
5656
}
5757

5858
using std::chrono::duration_cast;
@@ -179,7 +179,7 @@ namespace openshot
179179
if (video_position < 0) return false;
180180

181181
stopPlayback();
182-
startThread(1);
182+
startThread(Priority::normal);
183183
return true;
184184
}
185185

0 commit comments

Comments
 (0)