Skip to content

Commit

Permalink
Making all thread priorities "high"
Browse files Browse the repository at this point in the history
  • Loading branch information
jonoomph committed Dec 8, 2024
1 parent d005751 commit fad9ae9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Qt/AudioPlaybackThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 2 additions & 2 deletions src/Qt/PlayerPrivate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -179,7 +179,7 @@ namespace openshot
if (video_position < 0) return false;

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

Expand Down

0 comments on commit fad9ae9

Please sign in to comment.