aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-03-12 20:01:24 -0700
committerScott Jackson <daneren2005@gmail.com>2013-03-12 20:01:24 -0700
commit0c04f81bfc304eee7a2090fb2343c1d2437e9cab (patch)
tree082b105b2507042d62eacffddfcaaf7ecfd2c387
parent6074f16f21f0116a0bd1cd848c49c92379dcc651 (diff)
downloaddsub-0c04f81bfc304eee7a2090fb2343c1d2437e9cab.tar.gz
dsub-0c04f81bfc304eee7a2090fb2343c1d2437e9cab.tar.bz2
dsub-0c04f81bfc304eee7a2090fb2343c1d2437e9cab.zip
Stop buffering update from running forever
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
index ad6591a5..10872627 100644
--- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
+++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
@@ -954,6 +954,9 @@ public class DownloadServiceImpl extends Service implements DownloadService {
mediaPlayer.setOnBufferingUpdateListener(new MediaPlayer.OnBufferingUpdateListener() {
public void onBufferingUpdate(MediaPlayer mp, int percent) {
Log.i(TAG, "Buffered " + percent + "%");
+ if(percent == 100) {
+ mediaPlayer.setOnBufferingUpdateListener(null);
+ }
}
});