diff options
| author | Bond-009 <bond.009@outlook.com> | 2025-04-01 01:38:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-31 17:38:25 -0600 |
| commit | e9729a536f26a92ccd30cfff4e698e66dbda1adc (patch) | |
| tree | 1490275722e18c8cfc5d47d072af1189f021638e /MediaBrowser.Controller | |
| parent | 3fc3b04daf929d1d3a9533fc410cb77885eb2e8a (diff) | |
Use pattern matching for null checks (#13793)
Fix the few that slipped through
Diffstat (limited to 'MediaBrowser.Controller')
| -rw-r--r-- | MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs index 207bb40d9..ed975af7f 100644 --- a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs +++ b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs @@ -5621,7 +5621,7 @@ namespace MediaBrowser.Controller.MediaEncoding var doDeintH2645 = doDeintH264 || doDeintHevc; var doOclTonemap = IsHwTonemapAvailable(state, options); - var hasSubs = state.SubtitleStream != null && ShouldEncodeSubtitle(state); + var hasSubs = state.SubtitleStream is not null && ShouldEncodeSubtitle(state); var hasTextSubs = hasSubs && state.SubtitleStream.IsTextSubtitleStream; var hasGraphicalSubs = hasSubs && !state.SubtitleStream.IsTextSubtitleStream; var hasAssSubs = hasSubs |
