diff options
| author | Tim Hobbs <jesus.tesh@gmail.com> | 2014-03-24 09:37:44 -0700 |
|---|---|---|
| committer | Tim Hobbs <jesus.tesh@gmail.com> | 2014-03-24 09:37:44 -0700 |
| commit | 38a0af6e86d3bdf8794343b03d26659d4bf89093 (patch) | |
| tree | f3c92b89ae3e8a7e744ee13eb1b16139da690622 /MediaBrowser.Controller/Dlna/CodecProfile.cs | |
| parent | 543ce24c1051d10b32c0dae5277ee37c27daceae (diff) | |
| parent | 501dedb13cd59dc2683ac4192cd11289bd304cfb (diff) | |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'MediaBrowser.Controller/Dlna/CodecProfile.cs')
| -rw-r--r-- | MediaBrowser.Controller/Dlna/CodecProfile.cs | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/MediaBrowser.Controller/Dlna/CodecProfile.cs b/MediaBrowser.Controller/Dlna/CodecProfile.cs index bff374298..5621c7ef2 100644 --- a/MediaBrowser.Controller/Dlna/CodecProfile.cs +++ b/MediaBrowser.Controller/Dlna/CodecProfile.cs @@ -6,12 +6,12 @@ namespace MediaBrowser.Controller.Dlna public class CodecProfile { public CodecType Type { get; set; } - public List<ProfileCondition> Conditions { get; set; } + public ProfileCondition[] Conditions { get; set; } public string Codec { get; set; } public CodecProfile() { - Conditions = new List<ProfileCondition>(); + Conditions = new ProfileCondition[] {}; } public List<string> GetCodecs() @@ -32,6 +32,12 @@ namespace MediaBrowser.Controller.Dlna public ProfileConditionType Condition { get; set; } public ProfileConditionValue Property { get; set; } public string Value { get; set; } + public bool IsRequired { get; set; } + + public ProfileCondition() + { + IsRequired = true; + } } public enum ProfileConditionType @@ -46,11 +52,17 @@ namespace MediaBrowser.Controller.Dlna { AudioChannels, AudioBitrate, + AudioProfile, Filesize, Width, Height, + Has64BitOffsets, + VideoBitDepth, VideoBitrate, VideoFramerate, - VideoLevel + VideoLevel, + VideoPacketLength, + VideoProfile, + VideoTimestamp } } |
