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

This commit is contained in:
SenorSmartyPants 2022-02-02 16:24:10 -06:00 committed by GitHub
parent 6c53420fe3
commit 509d66dcb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 6 deletions

View File

@ -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))