diff options
| author | Tim Hobbs <jesus.tesh@gmail.com> | 2014-03-24 13:03:11 -0700 |
|---|---|---|
| committer | Tim Hobbs <jesus.tesh@gmail.com> | 2014-03-24 13:03:11 -0700 |
| commit | 968339e4d504fd0185fb8523b1016c590375a822 (patch) | |
| tree | cd11f00138a091ca2bb6ca454e61f039df42bf5f /MediaBrowser.Controller | |
| parent | 3632d679fb15189a2ab14983c7b12e15efef22e4 (diff) | |
| parent | a94a98dc6c1381c177a407139769e0cad566346b (diff) | |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'MediaBrowser.Controller')
| -rw-r--r-- | MediaBrowser.Controller/Dlna/CodecProfile.cs | 10 | ||||
| -rw-r--r-- | MediaBrowser.Controller/Dlna/TranscodingProfile.cs | 4 |
2 files changed, 10 insertions, 4 deletions
diff --git a/MediaBrowser.Controller/Dlna/CodecProfile.cs b/MediaBrowser.Controller/Dlna/CodecProfile.cs index 5621c7ef2..2b9a40ea0 100644 --- a/MediaBrowser.Controller/Dlna/CodecProfile.cs +++ b/MediaBrowser.Controller/Dlna/CodecProfile.cs @@ -1,4 +1,5 @@ -using System.Collections.Generic; +using System; +using System.Collections.Generic; using System.Linq; namespace MediaBrowser.Controller.Dlna @@ -18,6 +19,13 @@ namespace MediaBrowser.Controller.Dlna { return (Codec ?? string.Empty).Split(',').Where(i => !string.IsNullOrWhiteSpace(i)).ToList(); } + + public bool ContainsCodec(string codec) + { + var codecs = GetCodecs(); + + return codecs.Count == 0 || codecs.Contains(codec, StringComparer.OrdinalIgnoreCase); + } } public enum CodecType diff --git a/MediaBrowser.Controller/Dlna/TranscodingProfile.cs b/MediaBrowser.Controller/Dlna/TranscodingProfile.cs index 1ce2adb1b..007cb632e 100644 --- a/MediaBrowser.Controller/Dlna/TranscodingProfile.cs +++ b/MediaBrowser.Controller/Dlna/TranscodingProfile.cs @@ -32,9 +32,7 @@ namespace MediaBrowser.Controller.Dlna public enum TranscodingSettingType { - VideoLevel = 0, - VideoProfile = 1, - MaxAudioChannels = 2 + VideoProfile = 0 } public enum TranscodeSeekInfo |
