aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-10-19 20:02:50 -0700
committerScott Jackson <daneren2005@gmail.com>2014-10-19 20:02:50 -0700
commit1938da83335933306d8e2e1602c94a98e7de0399 (patch)
tree2a36c91dc12019d75367644f9e05b27b507a745e /src/github/daneren2005
parentbc523aed86056495c3f87e42b73597a028804093 (diff)
downloaddsub-1938da83335933306d8e2e1602c94a98e7de0399.tar.gz
dsub-1938da83335933306d8e2e1602c94a98e7de0399.tar.bz2
dsub-1938da83335933306d8e2e1602c94a98e7de0399.zip
Playback has to be paused for EQ workaround to work
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r--src/github/daneren2005/dsub/service/DownloadService.java5
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;