[Android] Fix wrongly saving progress when starting playing a media
Nicolas Pomepuy
git at videolan.org
Wed Jun 2 09:21:28 UTC 2021
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Jun 1 14:19:22 2021 +0200| [0204f3d3638b514f3341e9675659f66fdc828608] | committer: Nicolas Pomepuy
Fix wrongly saving progress when starting playing a media
> https://code.videolan.org/videolan/vlc-android/commit/0204f3d3638b514f3341e9675659f66fdc828608
---
application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt | 1 -
1 file changed, 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 86aa4b60e..d81e0952d 100644
--- a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -317,7 +317,6 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
}
suspend fun playIndex(index: Int, flags: Int = 0) {
- mediaList.getMedia(currentIndex)?.let { if (it.type == MediaWrapper.TYPE_VIDEO) it.time = player.getCurrentTime() }
videoBackground = videoBackground || (!player.isVideoPlaying() && player.canSwitchToVideo())
if (mediaList.size() == 0) {
Log.w(TAG, "Warning: empty media list, nothing to play !")
More information about the Android
mailing list