mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-17 13:10:28 +01:00
beta fixes
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user