From 138640255714b260d562176501e99bd0f8687e8e Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 11 Oct 2020 21:39:54 +0100 Subject: WinGui: Preference the first QSV encoder when we don't have any used QSV hardware tokens in the queue resource manager. --- win/CS/HandBrakeWPF/Services/Queue/QueueResourceService.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'win/CS/HandBrakeWPF/Services') 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; -- cgit v1.2.3