aboutsummaryrefslogtreecommitdiff
path: root/Emby.Drawing/ImageProcessor.cs
diff options
context:
space:
mode:
authorVasily <JustAMan@users.noreply.github.com>2019-02-04 14:08:21 +0300
committerGitHub <noreply@github.com>2019-02-04 14:08:21 +0300
commit0b3e6548dbea5db4d31e3947cc2406852d8e3733 (patch)
tree58498940d6f7af752b7b62f855670510b699a774 /Emby.Drawing/ImageProcessor.cs
parentc4c0894b29898ab6826542abc7a247291b46f804 (diff)
parent78e4e2ed929155b433fc0cbb2ea6fc7f64411a72 (diff)
Merge pull request #797 from Bond-009/warnings
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