aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Dlna/CodecProfile.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Controller/Dlna/CodecProfile.cs')
-rw-r--r--MediaBrowser.Controller/Dlna/CodecProfile.cs9
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();
}
}