pub fn get_subtitle_format_err(
extension: Option<&OsStr>,
content: &[u8],
) -> Result<SubtitleFormat>Expand description
Returns the subtitle format by the file extension and provided content.
Works exactly like get_subtitle_format, but instead of None a UnknownFileFormat
will be returned (for simpler error handling).