diff --git a/airsonic-main/src/main/java/org/airsonic/player/service/TranscodingService.java b/airsonic-main/src/main/java/org/airsonic/player/service/TranscodingService.java index 9c2a143a..1037d5da 100644 --- a/airsonic-main/src/main/java/org/airsonic/player/service/TranscodingService.java +++ b/airsonic-main/src/main/java/org/airsonic/player/service/TranscodingService.java @@ -520,11 +520,9 @@ public class TranscodingService { List steps = Arrays.asList(); if (transcoding != null) { steps = Arrays.asList(transcoding.getStep3(), transcoding.getStep2(), transcoding.getStep1()); - } - else if (parameters.isDownsample()) { + } else if (parameters.isDownsample()) { steps = Arrays.asList(settingsService.getDownsamplingCommand()); - } - else { + } else { return true; // neither transcoding nor downsampling }