diff options
author | sr55 <[email protected]> | 2020-10-11 21:39:54 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2020-10-11 21:40:19 +0100 |
commit | 138640255714b260d562176501e99bd0f8687e8e (patch) | |
tree | bca9c922a99751126ccf484173a07b4af2d18adf /win/CS/HandBrakeWPF/Services | |
parent | cb4364e9143951cc582dc03f5e85e2aaec26c22e (diff) |
WinGui: Preference the first QSV encoder when we don't have any used QSV hardware tokens in the queue resource manager.
Diffstat (limited to 'win/CS/HandBrakeWPF/Services')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Queue/QueueResourceService.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Queue/QueueResourceService.cs b/win/CS/HandBrakeWPF/Services/Queue/QueueResourceService.cs index 889007311..0da86be98 100644 --- a/win/CS/HandBrakeWPF/Services/Queue/QueueResourceService.cs +++ b/win/CS/HandBrakeWPF/Services/Queue/QueueResourceService.cs @@ -162,6 +162,12 @@ namespace HandBrakeWPF.Services.Queue { return; // Multi-Process encoding is disabled. } + + if (this.qsvInstances.Count == 0) + { + // Reset to -1 if we have no encoders currently in use. + this.intelGpuCounter = -1; + } this.intelGpuCounter = this.intelGpuCounter + 1; int modulus = this.intelGpuCounter % 2; |