beta fixes

This commit is contained in:
Luke Pulverenti
2014-12-14 15:01:26 -05:00
parent 9df9723fa8
commit 1c1336ac08
12 changed files with 70 additions and 14 deletions

View File

@@ -625,6 +625,12 @@ namespace MediaBrowser.Model.Dlna
continue;
}
// No way to express this
if (condition.Condition == ProfileConditionType.GreaterThanEqual)
{
continue;
}
switch (condition.Property)
{
case ProfileConditionValue.AudioBitrate:
@@ -650,12 +656,19 @@ namespace MediaBrowser.Model.Dlna
bool val;
if (BoolHelper.TryParseCultureInvariant(value, out val))
{
item.Cabac = val;
if (condition.Condition == ProfileConditionType.Equals)
{
item.Cabac = val;
}
else if (condition.Condition == ProfileConditionType.NotEquals)
{
item.Cabac = !val;
}
}
break;
}
case ProfileConditionValue.AudioProfile:
case ProfileConditionValue.IsAnamorphic:
case ProfileConditionValue.AudioProfile:
case ProfileConditionValue.Has64BitOffsets:
case ProfileConditionValue.PacketLength:
case ProfileConditionValue.VideoTimestamp:

View File

@@ -1,4 +1,5 @@
using System.Collections.Generic;
using MediaBrowser.Model.Dlna;
using System.Collections.Generic;
namespace MediaBrowser.Model.Session
{
@@ -16,6 +17,8 @@ namespace MediaBrowser.Model.Session
public bool SupportsUniqueIdentifier { get; set; }
public bool SupportsSync { get; set; }
public DeviceProfile DeviceProfile { get; set; }
public ClientCapabilities()
{
PlayableMediaTypes = new List<string>();