aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2016-08-04 16:21:33 -0700
committerScott Jackson <daneren2005@gmail.com>2016-08-04 16:21:33 -0700
commitde658d0d9c833ada07b9baff9fbf40a66954f37d (patch)
tree8cb954f911656dfbb3768d7a63b05da729184604 /app/src
parent0749cc7d7d903a76bce7410a5f79555c1ffe9807 (diff)
downloaddsub-de658d0d9c833ada07b9baff9fbf40a66954f37d.tar.gz
dsub-de658d0d9c833ada07b9baff9fbf40a66954f37d.tar.bz2
dsub-de658d0d9c833ada07b9baff9fbf40a66954f37d.zip
Fixes #725: Don't set playback params before mediaPlayer ready
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/service/DownloadService.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java b/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java
index 7168083c..ec03f8db 100644
--- a/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java
+++ b/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java
@@ -2614,7 +2614,9 @@ public class DownloadService extends Service {
public void setPlaybackSpeed(float playbackSpeed) {
Util.getPreferences(this).edit().putFloat(Constants.PREFERENCES_KEY_PLAYBACK_SPEED, playbackSpeed).commit();
- applyPlaybackParamsMain();
+ if(mediaPlayer != null && (playerState == PREPARED || playerState == STARTED || playerState == PAUSED || playerState == PAUSED_TEMP)) {
+ applyPlaybackParamsMain();
+ }
if(nextMediaPlayer != null && nextPlayerState == PREPARED) {
applyPlaybackParamsNext();
}