diff options
author | sr55 <[email protected]> | 2018-05-06 13:44:35 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2018-05-06 13:44:35 +0100 |
commit | 292f660b2f9e10569d9ca0eba6095cc02fd7d1a4 (patch) | |
tree | f1ec2dd0919cef225da28b43a8e626855935c446 /win | |
parent | 63a5558d42087cffd4971b85f34b90e3832c0649 (diff) |
WinGui: For MP4 files, when subtitles are incompatible and we've already used a burn-in track, drop all additional subtitle tracks instead of adding them.
Diffstat (limited to 'win')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs index bc8ba1ce2..7b090841c 100644 --- a/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs @@ -594,6 +594,11 @@ namespace HandBrakeWPF.ViewModels // For MP4, PGS Subtitles must be burned in.
if (!track.Burned && (source.SubtitleType == SubtitleType.PGS) && this.Task != null && this.Task.OutputFormat == OutputFormat.Mp4)
{
+ if (this.Task.SubtitleTracks.Any(a => a.Burned))
+ {
+ return; // We can't add any more burned in tracks.
+ }
+
if (track.CanBeBurned)
{
track.Burned = true;
|