From dd719aa7f60363dbc7fab7d4ae61398a8c5e4460 Mon Sep 17 00:00:00 2001 From: daneren2005 Date: Thu, 12 Sep 2013 10:24:51 -0700 Subject: Attempt to make sure that nextMediaPlayer is stopped --- src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/github/daneren2005') diff --git a/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/src/github/daneren2005/dsub/service/DownloadServiceImpl.java index 5aa31aa8..26ca7f11 100644 --- a/src/github/daneren2005/dsub/service/DownloadServiceImpl.java +++ b/src/github/daneren2005/dsub/service/DownloadServiceImpl.java @@ -1161,6 +1161,8 @@ public class DownloadServiceImpl extends Service implements DownloadService { final File file = downloadFile.isCompleteFileAvailable() ? downloadFile.getCompleteFile() : downloadFile.getPartialFile(); if(nextMediaPlayer != null) { nextMediaPlayer.setOnCompletionListener(null); + nextMediaPlayer.setOnErrorListener(null); + nextMediaPlayer.reset(); nextMediaPlayer.release(); nextMediaPlayer = null; } -- cgit v1.2.3