The Free Software Media System - Server Backend & API
fix dlna direct play on samsung tv's
Luke Pulverenti39394e74c70f
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.csindex ba43c7f350..894d91f71b 100644--- a/Emby.Server.Implementations/ApplicationHost.cs+++ b/Emby.Server.Implementations/ApplicationHost.cs@@ -2211,19 +2211,36 @@ namespace Emby.Server.ImplementationsTimeSpan.FromHours(12) :TimeSpan.FromMinutes(5);- var result = await new GithubUpdater(HttpClient, JsonSerializer).CheckForUpdateResult("MediaBrowser",- "Emby",- ApplicationVersion,- updateLevel,- ReleaseAssetFilename,- "MBServer",- UpdateTargetFileName,- cacheLength,- cancellationToken).ConfigureAwait(false);-- HasUpdateAvailable = result.IsUpdateAvailable;+ try+ {+ var result = await new GithubUpdater(HttpClient, JsonSerializer).CheckForUpdateResult("MediaBrowser",+ "Emby",+ ApplicationVersion,+ updateLevel,+ ReleaseAssetFilename,+ "MBServer",+ UpdateTargetFileName,+ cacheLength,+ cancellationToken).ConfigureAwait(false);- return result;+ HasUpdateAvailable = result.IsUpdateAvailable;++ return result;+ }+ catch (HttpException ex)+ {+ // users are overreacting to this occasionally failing+ if (ex.StatusCode.HasValue && ex.StatusCode.Value == HttpStatusCode.Forbidden)+ {+ HasUpdateAvailable = false;+ return new CheckForUpdateResult+ {+ IsUpdateAvailable = false+ };+ }++ throw;+ }}protected virtual string UpdateTargetFileNamediff --git a/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs b/Emby.Server.Implementations/HttpServer/HttpResultFactory.csindex 3e05653438..b06a6a8875 100644--- a/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs+++ b/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs@@ -533,7 +533,7 @@ namespace Emby.Server.Implementations.HttpServer{stream.Dispose();- return GetHttpResult(new byte[] { }, contentType, true);+ return GetHttpResult(new byte[] { }, contentType, true, responseHeaders);}var hasHeaders = new StreamWriter(stream, contentType, _logger)diff --git a/MediaBrowser.Model/Configuration/EncodingOptions.cs b/MediaBrowser.Model/Configuration/EncodingOptions.csindex a143bb9e3c..fbc5e1b375 100644--- a/MediaBrowser.Model/Configuration/EncodingOptions.cs+++ b/MediaBrowser.Model/Configuration/EncodingOptions.cs@@ -25,7 +25,8 @@ namespace MediaBrowser.Model.ConfigurationEnableThrottling = true;ThrottleDelaySeconds = 180;EncodingThreadCount = -1;- VaapiDevice = "/dev/dri/card0";+ // This is a DRM device that is almost guaranteed to be there on every intel platform, plus it's the default one in ffmpeg if you don't specify anything+ VaapiDevice = "/dev/dri/renderD128";H264Crf = 23;EnableHardwareEncoding = true;EnableSubtitleExtraction = true;diff --git a/MediaBrowser.Server.Mono/MonoAppHost.cs b/MediaBrowser.Server.Mono/MonoAppHost.csindex ded7bb5f3a..fe684d928d 100644--- a/MediaBrowser.Server.Mono/MonoAppHost.cs+++ b/MediaBrowser.Server.Mono/MonoAppHost.cs@@ -26,7 +26,7 @@ namespace MediaBrowser.Server.Monoget{// A restart script must be provided- return StartupOptions.ContainsOption("-restartpath");+ return false;}}