diff options
Diffstat (limited to 'win')
-rw-r--r-- | win/CS/Controls/Subtitles.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/win/CS/Controls/Subtitles.cs b/win/CS/Controls/Subtitles.cs index 88e97b7fb..a31c941b7 100644 --- a/win/CS/Controls/Subtitles.cs +++ b/win/CS/Controls/Subtitles.cs @@ -417,7 +417,15 @@ namespace Handbrake.Controls SrtFileName = srtFile
};
- track.SubtitleType = ((Subtitle)drp_subtitleTracks.SelectedItem).SubtitleType;
+ Subtitle subtitle = drp_subtitleTracks.SelectedItem as Subtitle;
+ if (subtitle != null)
+ {
+ track.SubtitleType = ((Subtitle)drp_subtitleTracks.SelectedItem).SubtitleType;
+ }
+ else if (drp_subtitleTracks.SelectedItem != null && drp_subtitleTracks.SelectedItem.ToString().Contains(".srt"))
+ {
+ track.SubtitleType = SubtitleType.SRT;
+ }
if (currentOutputExtension.Equals("mp4", StringComparison.InvariantCultureIgnoreCase) ||
currentOutputExtension.Equals("m4v", StringComparison.CurrentCultureIgnoreCase))
|