Merge pull request #5842 from BaronGreenback/optimization

Code Clean up: Group Methods
This commit is contained in:
Bond-009
2021-04-29 21:14:57 +02:00
committed by GitHub
7 changed files with 8 additions and 8 deletions

View File

@@ -57,7 +57,7 @@ namespace MediaBrowser.MediaEncoding.Probing
.Where(i => i.Type != MediaStreamType.Subtitle || !string.IsNullOrWhiteSpace(i.Codec))
.ToList();
info.MediaAttachments = internalStreams.Select(s => GetMediaAttachment(s))
info.MediaAttachments = internalStreams.Select(GetMediaAttachment)
.Where(i => i != null)
.ToList();