update isavc condition

This commit is contained in:
Luke Pulverenti
2016-11-14 02:28:20 -05:00
parent 68d2add6d2
commit 43c6971383
4 changed files with 29 additions and 1 deletions

View File

@@ -1055,6 +1055,22 @@ namespace MediaBrowser.Model.Dlna
}
break;
}
case ProfileConditionValue.IsAvc:
{
bool isAvc;
if (bool.TryParse(value, out isAvc))
{
if (isAvc && condition.Condition == ProfileConditionType.Equals)
{
item.RequireAvc = true;
}
else if (!isAvc && condition.Condition == ProfileConditionType.NotEquals)
{
item.RequireAvc = true;
}
}
break;
}
case ProfileConditionValue.IsAnamorphic:
case ProfileConditionValue.AudioProfile:
case ProfileConditionValue.Has64BitOffsets:
@@ -1135,6 +1151,8 @@ namespace MediaBrowser.Model.Dlna
}
break;
}
default:
break;
}
}
}