diff options
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; } |