diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-11-01 15:45:10 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-11-01 15:45:10 -0400 |
| commit | 5fa007d04eff4a280a3f549de869339cccdb0d52 (patch) | |
| tree | aa98643b2eed2ae018f5e508b2146b66449cf864 /MediaBrowser.Server.Mono/ImageEncoderHelper.cs | |
| parent | ccda4bd62928466badcd0787eaedc79dc318a80b (diff) | |
add error handling to work around skia crashes
Diffstat (limited to 'MediaBrowser.Server.Mono/ImageEncoderHelper.cs')
| -rw-r--r-- | MediaBrowser.Server.Mono/ImageEncoderHelper.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Mono/ImageEncoderHelper.cs b/MediaBrowser.Server.Mono/ImageEncoderHelper.cs index 5112c64ed..4f8451c0d 100644 --- a/MediaBrowser.Server.Mono/ImageEncoderHelper.cs +++ b/MediaBrowser.Server.Mono/ImageEncoderHelper.cs @@ -9,6 +9,7 @@ using MediaBrowser.Model.IO; using MediaBrowser.Model.Logging; using Emby.Drawing.Skia; using MediaBrowser.Model.System; +using MediaBrowser.Model.Globalization; namespace MediaBrowser.Server.Startup.Common { @@ -20,13 +21,14 @@ namespace MediaBrowser.Server.Startup.Common StartupOptions startupOptions, Func<IHttpClient> httpClient, IApplicationPaths appPaths, - IEnvironmentInfo environment) + IEnvironmentInfo environment, + ILocalizationManager localizationManager) { if (!startupOptions.ContainsOption("-enablegdi")) { try { - return new SkiaEncoder(logManager.GetLogger("Skia"), appPaths, httpClient, fileSystem); + return new SkiaEncoder(logManager.GetLogger("Skia"), appPaths, httpClient, fileSystem, localizationManager); } catch (Exception ex) { |
