aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2013-03-25 11:11:29 -0700
committerdaneren2005 <daneren2005@gmail.com>2013-03-25 11:11:29 -0700
commit248737266584fc63e39143b55c730776c110f8ff (patch)
tree29a3f9430d1a51f4b84c9a68cc78ee647b1c807b /subsonic-android
parent5063a7f315ae18b669e35a505b88055fe2fba2e9 (diff)
downloaddsub-248737266584fc63e39143b55c730776c110f8ff.tar.gz
dsub-248737266584fc63e39143b55c730776c110f8ff.tar.bz2
dsub-248737266584fc63e39143b55c730776c110f8ff.zip
Only release nextMediaPlayer if it exists
Diffstat (limited to 'subsonic-android')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java4
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();