diff options
| author | Dmitry Lyzo <ashephard0@gmail.com> | 2026-05-18 23:34:43 +0300 |
|---|---|---|
| committer | Dmitry Lyzo <ashephard0@gmail.com> | 2026-05-19 13:35:05 +0300 |
| commit | cb131ecbb704041bbb776570e31ce2a146989593 (patch) | |
| tree | de617edd45b42d87768f6fb8ab2c10d45d038627 | |
| parent | 5c10076110f565850df45752ad0ebcd12644b7d8 (diff) | |
Enable nullable for MediaStream.SupportsDirectPlay
| -rw-r--r-- | MediaBrowser.Model/Entities/MediaStream.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/MediaBrowser.Model/Entities/MediaStream.cs b/MediaBrowser.Model/Entities/MediaStream.cs index 0b8d2b40a6..5dc7a78e9a 100644 --- a/MediaBrowser.Model/Entities/MediaStream.cs +++ b/MediaBrowser.Model/Entities/MediaStream.cs @@ -693,11 +693,16 @@ namespace MediaBrowser.Model.Entities /// Gets a value indicating whether this instance is compatible with the device. /// </summary> /// <value><c>true</c> if this instance is compatible with the device; otherwise, <c>false</c>.</value> - public bool SupportsDirectPlay + public bool? SupportsDirectPlay { get { - return DirectPlayErrors == 0; + if (!DirectPlayErrors.HasValue) + { + return null; + } + + return DirectPlayErrors.Value == 0; } } |
