|
@@ -537,7 +537,7 @@ namespace MediaBrowser.MediaEncoding.Subtitles
|
|
|
|
|
|
foreach (var subtitleStream in subtitleStreams)
|
|
foreach (var subtitleStream in subtitleStreams)
|
|
{
|
|
{
|
|
- if (!subtitleStream.Path.EndsWith(".mks", StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
|
+ if (subtitleStream.Path is null || !subtitleStream.Path.EndsWith(".mks", StringComparison.OrdinalIgnoreCase))
|
|
{
|
|
{
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
@@ -608,7 +608,7 @@ namespace MediaBrowser.MediaEncoding.Subtitles
|
|
|
|
|
|
foreach (var subtitleStream in subtitleStreams)
|
|
foreach (var subtitleStream in subtitleStreams)
|
|
{
|
|
{
|
|
- if (subtitleStream.Path.EndsWith(".mks", StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
|
+ if (subtitleStream.Path is not null && subtitleStream.Path.EndsWith(".mks", StringComparison.OrdinalIgnoreCase))
|
|
{
|
|
{
|
|
_logger.LogDebug("Subtitle {Index} for file {InputPath} is part in an MKS file. Skipping", inputPath, subtitleStream.Index);
|
|
_logger.LogDebug("Subtitle {Index} for file {InputPath} is part in an MKS file. Skipping", inputPath, subtitleStream.Index);
|
|
continue;
|
|
continue;
|