diff options
author | sr55 <[email protected]> | 2019-11-10 12:30:34 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2019-11-10 12:30:34 +0000 |
commit | bebb9c330e14b683a69ef6dfe80f2925e9cc3c9b (patch) | |
tree | c94f555f44c82379ccea7b38c56225de6e43e887 /win/CS/HandBrakeWPF/Services | |
parent | 4672248655ddd687161bacdb539c208abde15c59 (diff) |
WinGui: Fix an issue with Closed Captions Automation not working. Fixes #2402
Diffstat (limited to 'win/CS/HandBrakeWPF/Services')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Scan/Factories/TitleFactory.cs | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Scan/Factories/TitleFactory.cs b/win/CS/HandBrakeWPF/Services/Scan/Factories/TitleFactory.cs index 9b96771aa..fde542ab7 100644 --- a/win/CS/HandBrakeWPF/Services/Scan/Factories/TitleFactory.cs +++ b/win/CS/HandBrakeWPF/Services/Scan/Factories/TitleFactory.cs @@ -72,28 +72,26 @@ namespace HandBrakeWPF.Services.Scan.Factories switch (track.Source) { - case 0: + case (int)hb_subtitle_s_subsource.VOBSUB: convertedType = SubtitleType.VobSub; break; - case 4: + case (int)hb_subtitle_s_subsource.CC608SUB: + case (int)hb_subtitle_s_subsource.CC708SUB: + convertedType = SubtitleType.CC; + break; + case (int)hb_subtitle_s_subsource.IMPORTSRT: + convertedType = SubtitleType.SRT; + break; + case (int)hb_subtitle_s_subsource.UTF8SUB: convertedType = SubtitleType.UTF8Sub; break; - case 5: + case (int)hb_subtitle_s_subsource.TX3GSUB: convertedType = SubtitleType.TX3G; break; - case 6: + case (int)hb_subtitle_s_subsource.SSASUB: convertedType = SubtitleType.SSA; break; - case 1: - convertedType = SubtitleType.SRT; - break; - case 2: - convertedType = SubtitleType.CC; - break; - case 3: - convertedType = SubtitleType.CC; - break; - case 7: + case (int)hb_subtitle_s_subsource.PGSSUB: convertedType = SubtitleType.PGS; break; } |