summaryrefslogtreecommitdiffstats
path: root/win/CS
diff options
context:
space:
mode:
authorsr55 <[email protected]>2020-02-05 19:53:13 +0000
committersr55 <[email protected]>2020-02-05 19:53:13 +0000
commitd212e7c22a0155bab4bc57839383872b919af9fa (patch)
tree351e09c4fa809195e009ada208b6b3afec0a9662 /win/CS
parent8b405e1ad27528a6d247beae0973d1db3fb744c8 (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
Diffstat (limited to 'win/CS')
-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;