summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Services
diff options
context:
space:
mode:
authorsr55 <[email protected]>2020-02-05 19:53:13 +0000
committersr55 <[email protected]>2020-02-05 19:53:57 +0000
commit363a2304c546bde013b6ae867fc5b59085ac780e (patch)
treec125886d46bd710cd8b08a2f1a508c0d74922ac9 /win/CS/HandBrakeWPF/Services
parentf3185e151e5229835016a8143022a0dae51cfe98 (diff)
WinGui: Move Handling of AutoPassthru to the UI so it more clearly reflects what is happening and allows correct processing of fallback encoder values. Fixes #2619
(cherry picked from commit d212e7c22a0155bab4bc57839383872b919af9fa)
Diffstat (limited to 'win/CS/HandBrakeWPF/Services')
-rw-r--r--win/CS/HandBrakeWPF/Services/Encode/Model/Models/AudioTrack.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Encode/Model/Models/AudioTrack.cs b/win/CS/HandBrakeWPF/Services/Encode/Model/Models/AudioTrack.cs
index 4ad2cd11d..458d60ece 100644
--- a/win/CS/HandBrakeWPF/Services/Encode/Model/Models/AudioTrack.cs
+++ b/win/CS/HandBrakeWPF/Services/Encode/Model/Models/AudioTrack.cs
@@ -130,9 +130,15 @@ namespace HandBrakeWPF.Services.Encode.Model.Models
if (track.IsPassthru && (sourceTrack.Codec & encoderInfo.Id) == 0)
{
chosenEncoder = fallback;
- encoderInfo = HandBrakeEncoderHelpers.GetAudioEncoder(EnumHelper<AudioEncoder>.GetShortName(track.Encoder));
}
+ if (track.IsPassthru && chosenEncoder == AudioEncoder.Passthrough)
+ {
+ chosenEncoder = fallback;
+ }
+
+ encoderInfo = HandBrakeEncoderHelpers.GetAudioEncoder(EnumHelper<AudioEncoder>.GetShortName(chosenEncoder));
+
this.scannedTrack = sourceTrack;
this.drc = track.DRC;
this.encoder = chosenEncoder;