Making all thread priorities "high"

This commit is contained in:
Jonathan Thomas
2024-12-08 16:35:24 -06:00
parent d0057517ff
commit fad9ae922a
2 changed files with 3 additions and 3 deletions

View File

@@ -267,7 +267,7 @@ namespace openshot
audioInstance->audioDeviceManager.addAudioCallback(&player);
// Create TimeSliceThread for audio buffering
time_thread.startThread();
time_thread.startThread(Priority::high);
// Connect source to transport
transport.setSource(

View File

@@ -49,7 +49,7 @@ namespace openshot
// Start the threads
if (reader->info.has_audio)
audioPlayback->startThread(Priority::highest);
audioPlayback->startThread(Priority::high);
if (reader->info.has_video) {
videoCache->startThread(Priority::high);
videoPlayback->startThread(Priority::high);
@@ -179,7 +179,7 @@ namespace openshot
if (video_position < 0) return false;
stopPlayback();
startThread(Priority::normal);
startThread(Priority::high);
return true;
}