aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-09-25 15:10:13 -0700
committerScott Jackson <daneren2005@gmail.com>2014-09-25 15:10:13 -0700
commit1223218765fa9eb45b5f20189eae22f697b4a4d1 (patch)
treea6667bc79eaf5badf35d56c38b9a4cb03b8cf56c
parent6940a854d711922e8c6af7b10a3a5368e4084866 (diff)
downloaddsub-1223218765fa9eb45b5f20189eae22f697b4a4d1.tar.gz
dsub-1223218765fa9eb45b5f20189eae22f697b4a4d1.tar.bz2
dsub-1223218765fa9eb45b5f20189eae22f697b4a4d1.zip
Try setting audioSessionId before retrying EQ
-rw-r--r--src/github/daneren2005/dsub/service/DownloadService.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java
index f8ad8585..c5255b5d 100644
--- a/src/github/daneren2005/dsub/service/DownloadService.java
+++ b/src/github/daneren2005/dsub/service/DownloadService.java
@@ -1210,11 +1210,15 @@ public class DownloadService extends Service {
int pos = getPlayerPosition();
reset();
+ // Resetup media player
+ mediaPlaye.setAudioSessionId(audioSessionId);
+
EqualizerController controller = null;
try {
controller = effectsController.getEqualizerController();
} catch(Exception e2) {
- // Don't try again, just resetup media player
+ Log.w(TAG, "Failed to setup EQ even after reinitialization");
+ // Don't try again, just resetup media player and continue on
}
// Restart from same position and state we left off in