[Android] AudioService: Create media from the media list

Edward Wang git at videolan.org
Tue Aug 28 17:13:11 CEST 2012


vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Wed Aug 22 17:15:13 2012 -0400| [6af2e40c54bd4472eb18c71c9b04fa649e712473] | committer: Jean-Baptiste Kempf

AudioService: Create media from the media list

Don't recreate it from scratch.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=6af2e40c54bd4472eb18c71c9b04fa649e712473
---

 vlc-android/src/org/videolan/vlc/AudioService.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/AudioService.java b/vlc-android/src/org/videolan/vlc/AudioService.java
index 5537c4b..d2777f0 100644
--- a/vlc-android/src/org/videolan/vlc/AudioService.java
+++ b/vlc-android/src/org/videolan/vlc/AudioService.java
@@ -664,7 +664,7 @@ public class AudioService extends Service {
 
             if(realPlaylist) {
                 for(int i = 0; i < mediaPathList.size(); i++)
-                    mMediaList.add(new Media(mediaPathList.get(i), false));
+                    mMediaList.add(new Media(mediaPathList.get(i), i));
             } else {
                 DatabaseManager db = DatabaseManager.getInstance(AudioService.this);
                 for (int i = 0; i < mediaPathList.size(); i++) {



More information about the Android mailing list