aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Dlna/TranscodingProfile.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Model/Dlna/TranscodingProfile.cs')
-rw-r--r--MediaBrowser.Model/Dlna/TranscodingProfile.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/MediaBrowser.Model/Dlna/TranscodingProfile.cs b/MediaBrowser.Model/Dlna/TranscodingProfile.cs
index 214578a85..b4f6ec255 100644
--- a/MediaBrowser.Model/Dlna/TranscodingProfile.cs
+++ b/MediaBrowser.Model/Dlna/TranscodingProfile.cs
@@ -1,13 +1,18 @@
#pragma warning disable CS1591
+using System;
using System.ComponentModel;
-using System.ComponentModel.DataAnnotations;
using System.Xml.Serialization;
namespace MediaBrowser.Model.Dlna
{
public class TranscodingProfile
{
+ public TranscodingProfile()
+ {
+ Conditions = Array.Empty<ProfileCondition>();
+ }
+
[XmlAttribute("container")]
public string Container { get; set; } = string.Empty;
@@ -62,6 +67,8 @@ namespace MediaBrowser.Model.Dlna
[XmlAttribute("breakOnNonKeyFrames")]
public bool BreakOnNonKeyFrames { get; set; }
+ public ProfileCondition[] Conditions { get; set; }
+
public string[] GetAudioCodecs()
{
return ContainerProfile.SplitValue(AudioCodec);