[Android] Remove length condition on start time setting

Geoffrey Métais git at videolan.org
Thu May 17 15:01:38 CEST 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu May 17 15:00:16 2018 +0200| [e93dc81bd9690db6989b3d9ddb19fbcd8f0eb05b] | committer: Geoffrey Métais

Remove length condition on start time setting

It is checking at saving time and it prevents resume at correct position

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

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

diff --git a/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt b/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
index 84a13ed5e..f702dc845 100644
--- a/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -564,8 +564,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
 
         }
         if (savedTime <= 0L) return
-        val mediaLength = mw.length
-        if (mediaLength > 0 && savedTime < 0.95 * mediaLength) media.addOption(":start-time=${savedTime/1000L}")
+        media.addOption(":start-time=${savedTime/1000L}")
         savedTime = 0L
     }
 



More information about the Android mailing list