@ -597,7 +597,6 @@ namespace MediaBrowser.Model.Dlna
string videoProfile = videoStream = = null ? null : videoStream . Profile ;
float? videoFramerate = videoStream = = null ? null : videoStream . AverageFrameRate ? ? videoStream . AverageFrameRate ;
bool? isAnamorphic = videoStream = = null ? null : videoStream . IsAnamorphic ;
bool? isCabac = videoStream = = null ? null : videoStream . IsCabac ;
string videoCodecTag = videoStream = = null ? null : videoStream . CodecTag ;
int? audioBitrate = audioStream = = null ? null : audioStream . BitRate ;
@ -614,7 +613,7 @@ namespace MediaBrowser.Model.Dlna
// Check container conditions
foreach ( ProfileCondition i in conditions )
{
if ( ! conditionProcessor . IsVideoConditionSatisfied ( i , width , height , bitDepth , videoBitrate , videoProfile , videoLevel , videoFramerate , packetLength , timestamp , isAnamorphic , isCabac, refFrames, numVideoStreams , numAudioStreams , videoCodecTag ) )
if ( ! conditionProcessor . IsVideoConditionSatisfied ( i , width , height , bitDepth , videoBitrate , videoProfile , videoLevel , videoFramerate , packetLength , timestamp , isAnamorphic , refFrames, numVideoStreams , numAudioStreams , videoCodecTag ) )
{
LogConditionFailure ( profile , "VideoContainerProfile" , i , mediaSource ) ;
@ -647,7 +646,7 @@ namespace MediaBrowser.Model.Dlna
foreach ( ProfileCondition i in conditions )
{
if ( ! conditionProcessor . IsVideoConditionSatisfied ( i , width , height , bitDepth , videoBitrate , videoProfile , videoLevel , videoFramerate , packetLength , timestamp , isAnamorphic , isCabac, refFrames, numVideoStreams , numAudioStreams , videoCodecTag ) )
if ( ! conditionProcessor . IsVideoConditionSatisfied ( i , width , height , bitDepth , videoBitrate , videoProfile , videoLevel , videoFramerate , packetLength , timestamp , isAnamorphic , refFrames, numVideoStreams , numAudioStreams , videoCodecTag ) )
{
LogConditionFailure ( profile , "VideoCodecProfile" , i , mediaSource ) ;
@ -910,22 +909,6 @@ namespace MediaBrowser.Model.Dlna
}
break ;
}
case ProfileConditionValue . IsCabac :
{
bool val ;
if ( BoolHelper . TryParseCultureInvariant ( value , out val ) )
{
if ( condition . Condition = = ProfileConditionType . Equals )
{
item . Cabac = val ;
}
else if ( condition . Condition = = ProfileConditionType . NotEquals )
{
item . Cabac = ! val ;
}
}
break ;
}
case ProfileConditionValue . IsAnamorphic :
case ProfileConditionValue . AudioProfile :
case ProfileConditionValue . Has64BitOffsets :