]> granicus.if.org Git - handbrake/commitdiff
WinGui: For MP4 files, when subtitles are incompatible and we've already used a burn...
authorsr55 <sr55.hb@outlook.com>
Sun, 6 May 2018 12:44:35 +0000 (13:44 +0100)
committersr55 <sr55.hb@outlook.com>
Sun, 6 May 2018 12:44:35 +0000 (13:44 +0100)
win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs

index bc8ba1ce29b8e5259442d333d4e0243287846fb9..7b090841c379408189cafd0697f6be8581f81cca 100644 (file)
@@ -594,6 +594,11 @@ namespace HandBrakeWPF.ViewModels
             // For MP4, PGS Subtitles must be burned in.\r
             if (!track.Burned && (source.SubtitleType == SubtitleType.PGS) && this.Task != null && this.Task.OutputFormat == OutputFormat.Mp4)\r
             {\r
+                if (this.Task.SubtitleTracks.Any(a => a.Burned))\r
+                {\r
+                    return; // We can't add any more burned in tracks.\r
+                }\r
+\r
                 if (track.CanBeBurned)\r
                 {\r
                     track.Burned = true;\r