From 56a4aa180b05e57054da7ca9bce432446efa7b3c Mon Sep 17 00:00:00 2001 From: JPVenson Date: Sat, 18 Jan 2025 16:22:05 +0000 Subject: [PATCH] Fixed codesmell --- MediaBrowser.Providers/MediaInfo/VideoImageProvider.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/MediaBrowser.Providers/MediaInfo/VideoImageProvider.cs b/MediaBrowser.Providers/MediaInfo/VideoImageProvider.cs index 1a6dbbd7bc..3d446053b3 100644 --- a/MediaBrowser.Providers/MediaInfo/VideoImageProvider.cs +++ b/MediaBrowser.Providers/MediaInfo/VideoImageProvider.cs @@ -97,6 +97,7 @@ namespace MediaBrowser.Providers.MediaInfo query.Index = null; videoStream = _mediaSourceManager.GetMediaStreams(query).FirstOrDefault(); } + if (videoStream is null) { _logger.LogInformation("Skipping image extraction: no video stream found for {Path}.", item.Path ?? string.Empty);