summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels
diff options
context:
space:
mode:
authorsr55 <[email protected]>2016-08-03 20:24:56 +0100
committersr55 <[email protected]>2016-08-03 20:24:56 +0100
commit71704d346887391b9653f35eeb8739123531d34b (patch)
treedc516205f7f19477426f2eeb0b385999ba56f188 /win/CS/HandBrakeWPF/ViewModels
parent9b7ef42ebb3b0e38d1f08a12c346c1085ba9546c (diff)
WinGui: Check if a track is foreign audio, before defaulting burn-in if the burn-in behaviour is set for that.
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs7
1 files changed, 5 insertions, 2 deletions
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.