From 71704d346887391b9653f35eeb8739123531d34b Mon Sep 17 00:00:00 2001 From: sr55 Date: Wed, 3 Aug 2016 20:24:56 +0100 Subject: WinGui: Check if a track is foreign audio, before defaulting burn-in if the burn-in behaviour is set for that. --- win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs') diff --git a/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs index a73d17182..be48fec1d 100644 --- a/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs @@ -532,8 +532,11 @@ namespace HandBrakeWPF.ViewModels if (this.SubtitleBehaviours.SelectedBurnInBehaviour == SubtitleBurnInBehaviourModes.ForeignAudio || this.SubtitleBehaviours.SelectedBurnInBehaviour == SubtitleBurnInBehaviourModes.ForeignAudioPreferred) { - track.Burned = true; - this.SetBurnedToFalseForAllExcept(track); + if (subtitle != null && subtitle.SubtitleType == SubtitleType.ForeignAudioSearch) + { + track.Burned = true; + this.SetBurnedToFalseForAllExcept(track); + } } // For MP4, PGS Subtitles must be burned in. -- cgit v1.2.3