diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-04-26 13:02:09 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-04-26 13:02:09 -0700 |
commit | 2e497dc6d0d95ee6153d1d9cf192708268030d7d (patch) | |
tree | 8d2ebd3df0ab1de1a14619ba34dad7b2f604db2c | |
parent | cb9befec2a3c57c48b87b0f01cc086dd6bf83730 (diff) | |
download | dsub-2e497dc6d0d95ee6153d1d9cf192708268030d7d.tar.gz dsub-2e497dc6d0d95ee6153d1d9cf192708268030d7d.tar.bz2 dsub-2e497dc6d0d95ee6153d1d9cf192708268030d7d.zip |
Crash fix
-rw-r--r-- | src/github/daneren2005/dsub/service/DownloadService.java | 6 |
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 19c7a44a..c707abb3 100644 --- a/src/github/daneren2005/dsub/service/DownloadService.java +++ b/src/github/daneren2005/dsub/service/DownloadService.java @@ -1534,7 +1534,11 @@ public class DownloadService extends Service { private void handleError(Exception x) { Log.w(TAG, "Media player error: " + x, x); if(mediaPlayer != null) { - mediaPlayer.reset(); + try { + mediaPlayer.reset(); + } catch(Exception e) { + Log.e(TAG, "Failed to reset player in error handler"); + } } setPlayerState(IDLE); } |