From 5cafb17e8f7502ba463f2c6d36e27d2a28aa108d Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 1 Jul 2017 14:00:43 -0400 Subject: [PATCH 1/2] fix stream builder error --- MediaBrowser.Model/Dlna/StreamBuilder.cs | 12 +++++++++++- MediaBrowser.ServerApplication/MainStartup.cs | 3 --- .../MediaBrowser.ServerApplication.csproj | 4 ---- MediaBrowser.ServerApplication/packages.config | 1 - 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/MediaBrowser.Model/Dlna/StreamBuilder.cs b/MediaBrowser.Model/Dlna/StreamBuilder.cs index 342796a109..de6cbf4bb5 100644 --- a/MediaBrowser.Model/Dlna/StreamBuilder.cs +++ b/MediaBrowser.Model/Dlna/StreamBuilder.cs @@ -605,6 +605,11 @@ namespace MediaBrowser.Model.Dlna private StreamInfo BuildVideoItem(MediaSourceInfo item, VideoOptions options) { + if (item == null) + { + throw new ArgumentNullException("item"); + } + List transcodeReasons = new List(); StreamInfo playlistItem = new StreamInfo @@ -993,7 +998,12 @@ namespace MediaBrowser.Model.Dlna { LogConditionFailure(profile, "VideoContainerProfile", i, mediaSource); - return null; + var transcodeReason = GetTranscodeReasonForFailedCondition(i); + var transcodeReasons = transcodeReason.HasValue + ? new List { transcodeReason.Value } + : new List { }; + + return new Tuple>(null, transcodeReasons); } } diff --git a/MediaBrowser.ServerApplication/MainStartup.cs b/MediaBrowser.ServerApplication/MainStartup.cs index 8cd8138fdd..6b100b86d9 100644 --- a/MediaBrowser.ServerApplication/MainStartup.cs +++ b/MediaBrowser.ServerApplication/MainStartup.cs @@ -30,7 +30,6 @@ using Emby.Server.Implementations; using Emby.Server.Implementations.Browser; using Emby.Server.Implementations.IO; using Emby.Server.Implementations.Logging; -using ImageMagickSharp; using MediaBrowser.Common.Net; using MediaBrowser.Model.IO; @@ -72,8 +71,6 @@ namespace MediaBrowser.ServerApplication ApplicationPath = currentProcess.MainModule.FileName; var architecturePath = Path.Combine(Path.GetDirectoryName(ApplicationPath), Environment.Is64BitProcess ? "x64" : "x86"); - Wand.SetMagickCoderModulePath(architecturePath); - var success = SetDllDirectory(architecturePath); SQLitePCL.raw.SetProvider(new SQLitePCL.SQLite3Provider_sqlite3()); diff --git a/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj b/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj index 19f4921d3b..e918e0883f 100644 --- a/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj +++ b/MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj @@ -73,10 +73,6 @@ ..\ThirdParty\emby\Emby.Server.Sync.dll - - False - ..\packages\ImageMagickSharp.1.0.0.18\lib\net45\ImageMagickSharp.dll - ..\packages\NLog.4.4.11\lib\net45\NLog.dll True diff --git a/MediaBrowser.ServerApplication/packages.config b/MediaBrowser.ServerApplication/packages.config index ca382ffb3c..2b0d503a47 100644 --- a/MediaBrowser.ServerApplication/packages.config +++ b/MediaBrowser.ServerApplication/packages.config @@ -1,6 +1,5 @@  - From 8cc6f01a50065057f70b32435df600eb588da0ef Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 1 Jul 2017 14:01:01 -0400 Subject: [PATCH 2/2] 3.2.22.1 --- SharedVersion.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SharedVersion.cs b/SharedVersion.cs index 72ef8e0487..2c78642a6b 100644 --- a/SharedVersion.cs +++ b/SharedVersion.cs @@ -1,3 +1,3 @@ using System.Reflection; -[assembly: AssemblyVersion("3.2.21.1")] +[assembly: AssemblyVersion("3.2.22.1")]