diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-03-25 01:25:03 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-03-25 01:25:03 -0400 |
| commit | f245fffad10bde5bf559e67ab5342df8dd2d0aa9 (patch) | |
| tree | ea5e86df8e96db6b6a42c69dd240ea9b8c6a1638 /MediaBrowser.Controller/Dlna/TranscodingProfile.cs | |
| parent | 1644d45dac4b465fa9615554f1ef02406e0d9d39 (diff) | |
implement dlna headers
Diffstat (limited to 'MediaBrowser.Controller/Dlna/TranscodingProfile.cs')
| -rw-r--r-- | MediaBrowser.Controller/Dlna/TranscodingProfile.cs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/MediaBrowser.Controller/Dlna/TranscodingProfile.cs b/MediaBrowser.Controller/Dlna/TranscodingProfile.cs index 007cb632e..d4cfae989 100644 --- a/MediaBrowser.Controller/Dlna/TranscodingProfile.cs +++ b/MediaBrowser.Controller/Dlna/TranscodingProfile.cs @@ -1,4 +1,6 @@ - +using System.Collections.Generic; +using System.Linq; + namespace MediaBrowser.Controller.Dlna { public class TranscodingProfile @@ -11,7 +13,7 @@ namespace MediaBrowser.Controller.Dlna public string AudioCodec { get; set; } public bool EstimateContentLength { get; set; } - + public bool EnableMpegtsM2TsMode { get; set; } public TranscodeSeekInfo TranscodeSeekInfo { get; set; } public TranscodingSetting[] Settings { get; set; } @@ -21,7 +23,11 @@ namespace MediaBrowser.Controller.Dlna Settings = new TranscodingSetting[] { }; } - public bool EnableMpegtsM2TsMode { get; set; } + + public List<string> GetAudioCodecs() + { + return (AudioCodec ?? string.Empty).Split(',').Where(i => !string.IsNullOrWhiteSpace(i)).ToList(); + } } public class TranscodingSetting |
