Respect media speed for videos

This commit is contained in:
Jonas Kalderstam 2019-09-13 00:27:49 +02:00
parent b1190881ba
commit a91d44e787
1 changed files with 5 additions and 5 deletions

View File

@ -212,10 +212,6 @@ public class PlaybackControlsDialog extends DialogFragment {
}
private float getCurrentSpeed() {
if (isPlayingVideo) {
return UserPreferences.getVideoPlaybackSpeed();
}
float playbackSpeed = SPEED_USE_GLOBAL;
if (controller != null) {
Playable media = controller.getMedia();
@ -227,8 +223,12 @@ public class PlaybackControlsDialog extends DialogFragment {
}
if (playbackSpeed == SPEED_USE_GLOBAL) {
if (isPlayingVideo) {
playbackSpeed = UserPreferences.getVideoPlaybackSpeed();
} else {
playbackSpeed = UserPreferences.getPlaybackSpeed();
}
}
return playbackSpeed;
}