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 /Jellyfin.Api | |
| parent | 3fc3b04daf929d1d3a9533fc410cb77885eb2e8a (diff) | |
Use pattern matching for null checks (#13793)
Fix the few that slipped through
Diffstat (limited to 'Jellyfin.Api')
| -rw-r--r-- | Jellyfin.Api/Controllers/DynamicHlsController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/DynamicHlsController.cs b/Jellyfin.Api/Controllers/DynamicHlsController.cs index ca8ab0ef7..51291ec62 100644 --- a/Jellyfin.Api/Controllers/DynamicHlsController.cs +++ b/Jellyfin.Api/Controllers/DynamicHlsController.cs @@ -1753,7 +1753,7 @@ public class DynamicHlsController : BaseJellyfinApiController if (channels.HasValue && (channels.Value != 2 - || (state.AudioStream?.Channels != null && !useDownMixAlgorithm))) + || (state.AudioStream?.Channels is not null && !useDownMixAlgorithm))) { args += " -ac " + channels.Value; } |
