diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-03-12 20:01:24 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-03-12 20:01:24 -0700 |
commit | 0c04f81bfc304eee7a2090fb2343c1d2437e9cab (patch) | |
tree | 082b105b2507042d62eacffddfcaaf7ecfd2c387 /subsonic-android | |
parent | 6074f16f21f0116a0bd1cd848c49c92379dcc651 (diff) | |
download | dsub-0c04f81bfc304eee7a2090fb2343c1d2437e9cab.tar.gz dsub-0c04f81bfc304eee7a2090fb2343c1d2437e9cab.tar.bz2 dsub-0c04f81bfc304eee7a2090fb2343c1d2437e9cab.zip |
Stop buffering update from running forever
Diffstat (limited to 'subsonic-android')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 3 |
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); + } } }); |