You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Making all thread priorities "high"
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user