aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Dlna/ConditionProcessor.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-04-24 22:45:06 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-04-24 22:45:06 -0400
commit1544b7bf9ce3221aec47da22a76e171f6714ce26 (patch)
treea737f44f8cf44162ff264887c0b234cf17c6023e /MediaBrowser.Model/Dlna/ConditionProcessor.cs
parenteca1ba0b12da195dff3c31ffb799e4e3a7b5b5b9 (diff)
display timestamp info
Diffstat (limited to 'MediaBrowser.Model/Dlna/ConditionProcessor.cs')
-rw-r--r--MediaBrowser.Model/Dlna/ConditionProcessor.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/MediaBrowser.Model/Dlna/ConditionProcessor.cs b/MediaBrowser.Model/Dlna/ConditionProcessor.cs
index 2e337982fc..3577c6f018 100644
--- a/MediaBrowser.Model/Dlna/ConditionProcessor.cs
+++ b/MediaBrowser.Model/Dlna/ConditionProcessor.cs
@@ -18,7 +18,7 @@ namespace MediaBrowser.Model.Dlna
double? videoLevel,
double? videoFramerate,
int? packetLength,
- TransportStreamTimestamp timestamp)
+ TransportStreamTimestamp? timestamp)
{
switch (condition.Property)
{
@@ -176,8 +176,14 @@ namespace MediaBrowser.Model.Dlna
return false;
}
- private bool IsConditionSatisfied(ProfileCondition condition, TransportStreamTimestamp timestamp)
+ private bool IsConditionSatisfied(ProfileCondition condition, TransportStreamTimestamp? timestamp)
{
+ if (!timestamp.HasValue)
+ {
+ // If the value is unknown, it satisfies if not marked as required
+ return !condition.IsRequired;
+ }
+
var expected = (TransportStreamTimestamp)Enum.Parse(typeof(TransportStreamTimestamp), condition.Value, true);
switch (condition.Condition)