From 9b294c8bc96b31f6c458cc47fa8d330be2df086a Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 22 Mar 2014 16:50:28 -0400 Subject: add more codecs to direct play profiles --- MediaBrowser.Controller/Dlna/CodecProfile.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'MediaBrowser.Controller/Dlna/CodecProfile.cs') 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 Conditions { get; set; } - public string[] Codecs { get; set; } + public string Codec { get; set; } public CodecProfile() { Conditions = new List(); - Codecs = new string[] { }; + } + + public List GetCodecs() + { + return (Codec ?? string.Empty).Split(',').Where(i => !string.IsNullOrWhiteSpace(i)).ToList(); } } -- cgit v1.2.3