aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Model')
-rw-r--r--MediaBrowser.Model/Entities/MediaStream.cs9
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;
}
}