add subtitle fix for tizen

This commit is contained in:
Luke Pulverenti 2016-11-17 22:12:03 -05:00
parent b0c0b77aed
commit 7a2cb6da5a

View File

@ -141,8 +141,14 @@ namespace MediaBrowser.MediaEncoding.Subtitles
.ConfigureAwait(false); .ConfigureAwait(false);
var inputFormat = subtitle.Item2; var inputFormat = subtitle.Item2;
var writer = TryGetWriter(outputFormat);
if (string.Equals(inputFormat, outputFormat, StringComparison.OrdinalIgnoreCase) && TryGetWriter(outputFormat) == null) if (string.Equals(inputFormat, outputFormat, StringComparison.OrdinalIgnoreCase) && writer == null)
{
return subtitle.Item1;
}
if (writer == null)
{ {
return subtitle.Item1; return subtitle.Item1;
} }