Commit c64c8fb0 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy Committed by Geoffrey Métais

Fix playback speed rate set to 1 when resuming

parent 043b3f0d
......@@ -162,15 +162,15 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
repeating = settings.getInt(if (audio) "audio_repeating" else "media_repeating", REPEAT_NONE)
val position = settings.getInt(if (audio) "position_in_audio_list" else "position_in_media_list", 0)
savedTime = settings.getLong(if (audio) "position_in_song" else "position_in_media", -1)
if (!audio && position < playList.size && settings.getBoolean(PreferencesActivity.VIDEO_PAUSED, false)) {
playList[position].addFlags(MediaWrapper.MEDIA_PAUSED)
}
load(playList, position, true)
loadingLastPlaylist = false
if (!audio) {
if (position < playList.size && settings.getBoolean(PreferencesActivity.VIDEO_PAUSED, false)) {
playList[position].addFlags(MediaWrapper.MEDIA_PAUSED)
}
val rate = settings.getFloat(PreferencesActivity.VIDEO_SPEED, player.getRate())
if (rate != 1.0f) player.setRate(rate, false)
}
load(playList, position, true)
loadingLastPlaylist = false
}
return true
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment