diff options
-rw-r--r-- | src/github/daneren2005/dsub/service/DownloadService.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java index aa03acc5..90fb48d7 100644 --- a/src/github/daneren2005/dsub/service/DownloadService.java +++ b/src/github/daneren2005/dsub/service/DownloadService.java @@ -1218,7 +1218,6 @@ public class DownloadService extends Service { EqualizerController controller = null; try { controller = effectsController.getEqualizerController(); - // TODO: Start, open EQ, close, start, open EQ crashes here if(controller.getEqualizer() == null) { throw new Exception("Failed to get EQ"); } @@ -1228,6 +1227,8 @@ public class DownloadService extends Service { // If we failed, we are going to try to reinitialize the MediaPlayer boolean playing = playerState == STARTED; int pos = getPlayerPosition(); + mediaPlayer.pause(); + Util.sleepQuietly(10L); reset(); try { @@ -1246,7 +1247,7 @@ public class DownloadService extends Service { } // Restart from same position and state we left off in - play(getCurrentPlayingIndex(), playing, pos); + play(getCurrentPlayingIndex(), false, pos); } return controller; |