[Android] PlaybackService: fix playlist order
Thomas Guillem
git at videolan.org
Tue Aug 18 17:01:24 CEST 2015
vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Aug 18 16:59:19 2015 +0200| [c154d487df366b75bd1effd3b489deb760032e96] | committer: Thomas Guillem
PlaybackService: fix playlist order
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=c154d487df366b75bd1effd3b489deb760032e96
---
vlc-android/src/org/videolan/vlc/PlaybackService.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index a5a6db2..970bc92 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -1860,7 +1860,7 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
if (ml.getCount() > 0) {
mMediaList.remove(mCurrentIndex);
- for (int i = 0; i < ml.getCount(); ++i) {
+ for (int i = ml.getCount() - 1; i >= 0; --i) {
final Media child = ml.getMediaAt(i);
child.parse();
mMediaList.insert(mCurrentIndex, new MediaWrapper(child));
More information about the Android
mailing list