aboutsummaryrefslogtreecommitdiff
path: root/Emby.Drawing/ImageProcessor.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2019-02-02 21:45:29 +0100
committerBond-009 <bond.009@outlook.com>2019-02-02 21:45:29 +0100
commit78e4e2ed929155b433fc0cbb2ea6fc7f64411a72 (patch)
treef0855bf99a5e177a80297feae3dbed40c4543630 /Emby.Drawing/ImageProcessor.cs
parent42d5a48491904ae4251e32c17da037a1a5ba77eb (diff)
Fix all warnings
Diffstat (limited to 'Emby.Drawing/ImageProcessor.cs')
-rw-r--r--Emby.Drawing/ImageProcessor.cs9
1 files changed, 0 insertions, 9 deletions
diff --git a/Emby.Drawing/ImageProcessor.cs b/Emby.Drawing/ImageProcessor.cs
index f229d9a0b..097b4c40b 100644
--- a/Emby.Drawing/ImageProcessor.cs
+++ b/Emby.Drawing/ImageProcessor.cs
@@ -261,15 +261,6 @@ namespace Emby.Drawing
return (cacheFilePath, GetMimeType(outputFormat, cacheFilePath), _fileSystem.GetLastWriteTimeUtc(cacheFilePath));
}
- catch (ArgumentOutOfRangeException ex)
- {
- // Decoder failed to decode it
-#if DEBUG
- _logger.LogError(ex, "Error encoding image");
-#endif
- // Just spit out the original file if all the options are default
- return (originalImagePath, MimeTypes.GetMimeType(originalImagePath), dateModified);
- }
catch (Exception ex)
{
// If it fails for whatever reason, return the original image