From 7ba9a24736a98b7b78c5241d03ed331a74517c58 Mon Sep 17 00:00:00 2001 From: cvium Date: Wed, 12 Jan 2022 20:10:35 +0100 Subject: [PATCH] Fix bool --- .../Extractors/MatroskaKeyframeExtractor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Jellyfin.MediaEncoding.Hls/Extractors/MatroskaKeyframeExtractor.cs b/src/Jellyfin.MediaEncoding.Hls/Extractors/MatroskaKeyframeExtractor.cs index ee370fb01e..4bc537c0e1 100644 --- a/src/Jellyfin.MediaEncoding.Hls/Extractors/MatroskaKeyframeExtractor.cs +++ b/src/Jellyfin.MediaEncoding.Hls/Extractors/MatroskaKeyframeExtractor.cs @@ -26,7 +26,7 @@ public class MatroskaKeyframeExtractor : IKeyframeExtractor /// public bool TryExtractKeyframes(string filePath, [NotNullWhen(true)] out KeyframeData? keyframeData) { - if (filePath.AsSpan().EndsWith(".mkv", StringComparison.OrdinalIgnoreCase)) + if (!filePath.AsSpan().EndsWith(".mkv", StringComparison.OrdinalIgnoreCase)) { keyframeData = null; return false;