[Android] Fix wrong time saved in the medialibrary
Nicolas Pomepuy
git at videolan.org
Thu Oct 28 04:57:44 UTC 2021
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Wed Oct 27 13:17:54 2021 +0200| [07a55c7c0d7530d9345ed358acd96e0cf7535f7e] | committer: Nicolas Pomepuy
Fix wrong time saved in the medialibrary
> https://code.videolan.org/videolan/vlc-android/commit/07a55c7c0d7530d9345ed358acd96e0cf7535f7e
---
application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
index eab1f704a..b4dc064b5 100644
--- a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -489,7 +489,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
val currentMedia = getCurrentMedia() ?: return at launch
if (currentMedia.uri.scheme == "fd") return at launch
//Save progress
- val time = player.getCurrentTime()
+ val time = player.mediaplayer.time
val length = player.getLength()
val canSwitchToVideo = player.canSwitchToVideo()
val rate = player.getRate()
More information about the Android
mailing list