aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-03-05 12:36:18 -0800
committerScott Jackson <daneren2005@gmail.com>2014-03-05 12:36:18 -0800
commit1c0cb1bc1aad53fb052963264d390700ee0dc6e0 (patch)
treef734fd85f8aff4b4047a7bdae2f238e05e15ef43
parentccf8ca128b3c4ddc02d5f38c6e4d8b7172847755 (diff)
downloaddsub-1c0cb1bc1aad53fb052963264d390700ee0dc6e0.tar.gz
dsub-1c0cb1bc1aad53fb052963264d390700ee0dc6e0.tar.bz2
dsub-1c0cb1bc1aad53fb052963264d390700ee0dc6e0.zip
Don't buffer for no reason
-rw-r--r--src/github/daneren2005/dsub/service/DownloadService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java
index 7b4ddf31..a5d687ee 100644
--- a/src/github/daneren2005/dsub/service/DownloadService.java
+++ b/src/github/daneren2005/dsub/service/DownloadService.java
@@ -1206,7 +1206,7 @@ public class DownloadService extends Service {
bufferAndPlay(position, true);
}
private synchronized void bufferAndPlay(int position, boolean start) {
- if(playerState != PREPARED) {
+ if(!currentPlaying.isCompleteFileAvailable()) {
reset();
bufferTask = new BufferTask(currentPlaying, position, start);