fix handling of bare nfo's

This commit is contained in:
Luke Pulverenti
2015-03-31 15:33:38 -04:00
parent 2632093ebb
commit 0bcc43098e
4 changed files with 34 additions and 7 deletions

View File

@@ -341,7 +341,11 @@ namespace MediaBrowser.Model.Dlna
MediaStream subtitleStream = playlistItem.SubtitleStreamIndex.HasValue ? item.GetMediaStream(MediaStreamType.Subtitle, playlistItem.SubtitleStreamIndex.Value) : null;
MediaStream audioStream = item.GetDefaultAudioStream(options.AudioStreamIndex ?? item.DefaultAudioStreamIndex);
int? audioStreamIndex = audioStream == null ? (int?)null : audioStream.Index;
int? audioStreamIndex = null;
if (audioStream != null)
{
audioStreamIndex = audioStream.Index;
}
MediaStream videoStream = item.VideoStream;

View File

@@ -150,7 +150,12 @@ namespace MediaBrowser.Model.Dto
}
}
return numStreams == 0 ? (int?)null : numMatches;
if (numStreams == 0)
{
return null;
}
return numMatches;
}
public bool? IsSecondaryAudio(MediaStream stream)