From d3866786b03887914eb66f06dc1a529036e86244 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 9 Apr 2016 15:24:50 +0100 Subject: WinGui: Sanitise all Mixdown selections. Passthru the Codec into the Scanned Track object. --- win/CS/HandBrakeWPF/Services/Scan/LibScan.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'win/CS/HandBrakeWPF/Services/Scan/LibScan.cs') diff --git a/win/CS/HandBrakeWPF/Services/Scan/LibScan.cs b/win/CS/HandBrakeWPF/Services/Scan/LibScan.cs index 23d38af4e..bd1f4cf12 100644 --- a/win/CS/HandBrakeWPF/Services/Scan/LibScan.cs +++ b/win/CS/HandBrakeWPF/Services/Scan/LibScan.cs @@ -384,8 +384,7 @@ namespace HandBrakeWPF.Services.Scan int currentAudioTrack = 1; foreach (SourceAudioTrack track in title.AudioList) { - - converted.AudioTracks.Add(new Audio(currentAudioTrack, track.Language, track.LanguageCode, track.Description, string.Empty, track.SampleRate, track.BitRate, track.ChannelLayout)); + converted.AudioTracks.Add(new Audio(currentAudioTrack, track.Language, track.LanguageCode, track.Description, track.Codec, track.SampleRate, track.BitRate, track.ChannelLayout)); currentAudioTrack++; } -- cgit v1.2.3