aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-06-03 18:49:47 -0700
committerScott Jackson <daneren2005@gmail.com>2014-06-03 18:49:47 -0700
commit765669decc1bc05151c220fb3b0f82cc6efca2b5 (patch)
treeb8262e5335f4a977a8356979687265f0a51447ce /src/github/daneren2005
parent2b8c6ec6e6ba0e434157276a231a1e5f1a4fc707 (diff)
downloaddsub-765669decc1bc05151c220fb3b0f82cc6efca2b5.tar.gz
dsub-765669decc1bc05151c220fb3b0f82cc6efca2b5.tar.bz2
dsub-765669decc1bc05151c220fb3b0f82cc6efca2b5.zip
Fix upsampling for case where server claims not transcoding
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r--src/github/daneren2005/dsub/service/DownloadFile.java2
1 files changed, 1 insertions, 1 deletions
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();