diff options
author | daneren2005 <daneren2005@gmail.com> | 2013-03-25 11:11:29 -0700 |
---|---|---|
committer | daneren2005 <daneren2005@gmail.com> | 2013-03-25 11:11:29 -0700 |
commit | 248737266584fc63e39143b55c730776c110f8ff (patch) | |
tree | 29a3f9430d1a51f4b84c9a68cc78ee647b1c807b | |
parent | 5063a7f315ae18b669e35a505b88055fe2fba2e9 (diff) | |
download | dsub-248737266584fc63e39143b55c730776c110f8ff.tar.gz dsub-248737266584fc63e39143b55c730776c110f8ff.tar.bz2 dsub-248737266584fc63e39143b55c730776c110f8ff.zip |
Only release nextMediaPlayer if it exists
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java index bf68e905..31a16aac 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java @@ -207,7 +207,9 @@ public class DownloadServiceImpl extends Service implements DownloadService { } lifecycleSupport.onDestroy(); mediaPlayer.release(); - nextMediaPlayer.release(); + if(nextMediaPlayer != null) { + nextMediaPlayer.release(); + } shufflePlayBuffer.shutdown(); if (equalizerController != null) { equalizerController.release(); |