[Android] Fix playback speed rate set to 1 when resuming

Nicolas Pomepuy git at videolan.org
Wed Mar 20 09:42:37 CET 2019


vlc-android | branch: playback_speed_bug | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Wed Mar 20 09:42:33 2019 +0100| [b0b5901c40e9157e5b3b16d8d2b01b3b167d71de] | committer: Nicolas Pomepuy

Fix playback speed rate set to 1 when resuming

> https://code.videolan.org/videolan/vlc-android/commit/b0b5901c40e9157e5b3b16d8d2b01b3b167d71de
---

 vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt b/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
index e9ed30069..417ca50d0 100644
--- a/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -162,6 +162,7 @@ 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)
+            load(playList, position, true)
             if (!audio) {
                 if (position < playList.size && settings.getBoolean(PreferencesActivity.VIDEO_PAUSED, false)) {
                     playList[position].addFlags(MediaWrapper.MEDIA_PAUSED)
@@ -169,7 +170,6 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
                 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



More information about the Android mailing list