diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-03-22 16:50:28 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-03-22 16:50:28 -0400 |
| commit | 9b294c8bc96b31f6c458cc47fa8d330be2df086a (patch) | |
| tree | a45f20a51af3842097e1ca98ff7653a6a8523675 /MediaBrowser.Controller/Dlna/CodecProfile.cs | |
| parent | e2c01947443379f38f55bc9fed223c92410b4e10 (diff) | |
add more codecs to direct play profiles
Diffstat (limited to 'MediaBrowser.Controller/Dlna/CodecProfile.cs')
| -rw-r--r-- | MediaBrowser.Controller/Dlna/CodecProfile.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/Dlna/CodecProfile.cs b/MediaBrowser.Controller/Dlna/CodecProfile.cs index f17805654..bff374298 100644 --- a/MediaBrowser.Controller/Dlna/CodecProfile.cs +++ b/MediaBrowser.Controller/Dlna/CodecProfile.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.Linq; namespace MediaBrowser.Controller.Dlna { @@ -6,12 +7,16 @@ namespace MediaBrowser.Controller.Dlna { public CodecType Type { get; set; } public List<ProfileCondition> Conditions { get; set; } - public string[] Codecs { get; set; } + public string Codec { get; set; } public CodecProfile() { Conditions = new List<ProfileCondition>(); - Codecs = new string[] { }; + } + + public List<string> GetCodecs() + { + return (Codec ?? string.Empty).Split(',').Where(i => !string.IsNullOrWhiteSpace(i)).ToList(); } } |
