Merge remote-tracking branch 'origin/pr/1152'

master
Andrew DeMaria 5 years ago
commit 0dd16c2cd8
No known key found for this signature in database
GPG Key ID: 0A3F5E91F8364EDF
  1. 6
      airsonic-main/src/main/java/org/airsonic/player/controller/CoverArtController.java

@ -628,10 +628,10 @@ public class CoverArtController implements LastModified {
try {
in = getImageInputStreamForVideo(mediaFile, width, height, offset);
BufferedImage result = ImageIO.read(in);
if (result == null) {
throw new NullPointerException();
}
if (result != null) {
return result;
}
LOG.warn("Failed to process cover art for " + mediaFile + ": {}", result);
} catch (Throwable x) {
LOG.warn("Failed to process cover art for " + mediaFile + ": " + x, x);
} finally {

Loading…
Cancel
Save