From 765669decc1bc05151c220fb3b0f82cc6efca2b5 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Tue, 3 Jun 2014 18:49:47 -0700 Subject: Fix upsampling for case where server claims not transcoding --- src/github/daneren2005/dsub/service/DownloadFile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/github/daneren2005/dsub/service/DownloadFile.java b/src/github/daneren2005/dsub/service/DownloadFile.java index 6e1efcf6..5a9af6d6 100644 --- a/src/github/daneren2005/dsub/service/DownloadFile.java +++ b/src/github/daneren2005/dsub/service/DownloadFile.java @@ -106,7 +106,7 @@ public class DownloadFile implements BufferFile { } else { br = 320; } - } else if(song.getSuffix() != null && song.getSuffix().equals(song.getTranscodedSuffix()) { + } else if(song.getSuffix() != null && (song.getTranscodedSuffix() == null || song.getSuffix().equals(song.getTranscodedSuffix()))) { // If just downsampling, don't try to upsample (ie: 128 kpbs -> 192 kpbs) if(song.getBitRate() != null && br > song.getBitRate()) { br = song.getBitRate(); -- cgit v1.2.3