From cb131ecbb704041bbb776570e31ce2a146989593 Mon Sep 17 00:00:00 2001 From: Dmitry Lyzo Date: Mon, 18 May 2026 23:34:43 +0300 Subject: Enable nullable for MediaStream.SupportsDirectPlay --- MediaBrowser.Model/Entities/MediaStream.cs | 9 +++++++-- 1 file 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. /// /// true if this instance is compatible with the device; otherwise, false. - public bool SupportsDirectPlay + public bool? SupportsDirectPlay { get { - return DirectPlayErrors == 0; + if (!DirectPlayErrors.HasValue) + { + return null; + } + + return DirectPlayErrors.Value == 0; } } -- cgit v1.2.3