diff options
author | sr55 <[email protected]> | 2016-12-31 12:45:56 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2016-12-31 12:45:56 +0000 |
commit | a2f1ca23f917a3b800a62bed4711bd18866042c7 (patch) | |
tree | 878f3b58b3fc78c9c981c9cbbbeb88eaa3ce1854 /win | |
parent | bcb1729a994d1e508584340c8fd82075223b3824 (diff) |
WinGui: Fixes to Subtitle Default behaviours.
Diffstat (limited to 'win')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs index be48fec1d..826805636 100644 --- a/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs @@ -347,7 +347,14 @@ namespace HandBrakeWPF.ViewModels switch (this.SubtitleBehaviours.SelectedBurnInBehaviour)
{
case SubtitleBurnInBehaviourModes.None:
- // Do Nothing. Only tracks where the container requires it will be burned in.
+ foreach (var track in this.Task.SubtitleTracks)
+ {
+ if (track.SourceTrack.SubtitleType == SubtitleType.ForeignAudioSearch)
+ {
+ track.Forced = true;
+ break;
+ }
+ }
break;
case SubtitleBurnInBehaviourModes.ForeignAudio:
foreach (var track in this.Task.SubtitleTracks)
@@ -356,6 +363,7 @@ namespace HandBrakeWPF.ViewModels if (track.SourceTrack.SubtitleType == SubtitleType.ForeignAudioSearch)
{
track.Burned = true;
+ track.Forced = true;
this.SetBurnedToFalseForAllExcept(track);
break;
}
@@ -364,8 +372,13 @@ namespace HandBrakeWPF.ViewModels case SubtitleBurnInBehaviourModes.FirstTrack:
foreach (var track in this.Task.SubtitleTracks)
{
- // Set the first track.
- if (!burnInSet && track.SourceTrack.SubtitleType != SubtitleType.ForeignAudioSearch)
+ if (track.SourceTrack.SubtitleType == SubtitleType.ForeignAudioSearch) // Foreign Audio Search is always first in the list.
+ {
+ track.Forced = true;
+ continue;
+ }
+
+ if (!burnInSet)
{
burnInSet = true;
track.Burned = true;
@@ -388,6 +401,7 @@ namespace HandBrakeWPF.ViewModels if (track.SourceTrack.SubtitleType == SubtitleType.ForeignAudioSearch)
{
track.Burned = true;
+ track.Forced = true;
this.SetBurnedToFalseForAllExcept(track);
break;
}
|