Fix #7147: Don't return subtitles in mismatched format (#7149)

pull/7277/head
SenorSmartyPants 2 years ago committed by GitHub
parent 6c53420fe3
commit 509d66dcb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -141,12 +141,6 @@ namespace MediaBrowser.MediaEncoding.Subtitles
var inputFormat = subtitle.Format;
// Return the original if we don't have any way of converting it
if (!TryGetWriter(outputFormat, out var writer))
{
return subtitle.Stream;
}
// Return the original if the same format is being requested
// Character encoding was already handled in GetSubtitleStream
if (string.Equals(inputFormat, outputFormat, StringComparison.OrdinalIgnoreCase))

Loading…
Cancel
Save