aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2013-12-02 10:25:16 -0800
committerdaneren2005 <daneren2005@gmail.com>2013-12-02 10:25:16 -0800
commit283c65854e0e333dbcbd6f8dd271a8cfb3064c87 (patch)
tree09917cd4c8235e4ce6db732d2fa981c566eb8190
parent6df08e25f5dc7715b2b61f34f2d46e19d766e98d (diff)
downloaddsub-283c65854e0e333dbcbd6f8dd271a8cfb3064c87.tar.gz
dsub-283c65854e0e333dbcbd6f8dd271a8cfb3064c87.tar.bz2
dsub-283c65854e0e333dbcbd6f8dd271a8cfb3064c87.zip
#201 Use video bitrate for video caching
-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 51649b62..41c5b969 100644
--- a/src/github/daneren2005/dsub/service/DownloadFile.java
+++ b/src/github/daneren2005/dsub/service/DownloadFile.java
@@ -86,7 +86,7 @@ public class DownloadFile {
*/
public int getBitRate() {
if(!partialFile.exists()) {
- bitRate = Util.getMaxBitrate(context);
+ bitRate = song.isVideo() ? Util.getMaxVideoBitrate(context) : Util.getMaxBitrate(context);
}
if (bitRate > 0) {
return bitRate;