diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-10-19 12:05:03 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-10-19 12:05:03 -0400 |
| commit | 51c3f270ae80290da75e48b0e4aa838af72b07b6 (patch) | |
| tree | 98e9b20680e320b0f111ab2e934b2746c2d6a4b3 /MediaBrowser.Model/Dlna/ConditionProcessor.cs | |
| parent | 00bb68d2e8801c3b89b6cb5e5af495aad4f352f5 (diff) | |
add codec tag value
Diffstat (limited to 'MediaBrowser.Model/Dlna/ConditionProcessor.cs')
| -rw-r--r-- | MediaBrowser.Model/Dlna/ConditionProcessor.cs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/MediaBrowser.Model/Dlna/ConditionProcessor.cs b/MediaBrowser.Model/Dlna/ConditionProcessor.cs index fd3df9c76..fef04647a 100644 --- a/MediaBrowser.Model/Dlna/ConditionProcessor.cs +++ b/MediaBrowser.Model/Dlna/ConditionProcessor.cs @@ -20,15 +20,11 @@ namespace MediaBrowser.Model.Dlna bool? isCabac, int? refFrames, int? numVideoStreams, - int? numAudioStreams) + int? numAudioStreams, + string videoCodecTag) { switch (condition.Property) { - case ProfileConditionValue.AudioProfile: - // TODO: Implement - return true; - case ProfileConditionValue.Has64BitOffsets: - return true; case ProfileConditionValue.IsAnamorphic: return IsConditionSatisfied(condition, isAnamorphic); case ProfileConditionValue.IsCabac: @@ -39,6 +35,8 @@ namespace MediaBrowser.Model.Dlna return IsConditionSatisfied(condition, videoLevel); case ProfileConditionValue.VideoProfile: return IsConditionSatisfied(condition, videoProfile); + case ProfileConditionValue.VideoCodecTag: + return IsConditionSatisfied(condition, videoCodecTag); case ProfileConditionValue.PacketLength: return IsConditionSatisfied(condition, packetLength); case ProfileConditionValue.VideoBitDepth: @@ -58,7 +56,7 @@ namespace MediaBrowser.Model.Dlna case ProfileConditionValue.VideoTimestamp: return IsConditionSatisfied(condition, timestamp); default: - throw new ArgumentException("Unexpected condition on video file: " + condition.Property); + return true; } } |
