mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-24 07:30:57 +01:00
Use pattern matching for null checks (#13793)
Fix the few that slipped through
This commit is contained in:
parent
3fc3b04daf
commit
e9729a536f
8 changed files with 12 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue