From 0c04f81bfc304eee7a2090fb2343c1d2437e9cab Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Tue, 12 Mar 2013 20:01:24 -0700 Subject: Stop buffering update from running forever --- .../src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'subsonic-android') 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); + } } }); -- cgit v1.2.3