[Android] fix media loading from db

Sébastien Toque git at videolan.org
Mon Dec 15 07:11:53 CET 2014


vlc-ports/android | branch: master | Sébastien Toque <xilasz at gmail.com> | Mon Dec 15 07:11:45 2014 +0100| [7615fe6972e0e1e2e6cdf0a762bb4b2ffd6078bd] | committer: Sébastien Toque

fix media loading from db

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

 vlc-android/src/org/videolan/vlc/MediaDatabase.java |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/MediaDatabase.java b/vlc-android/src/org/videolan/vlc/MediaDatabase.java
index 9537c9f..ee5ad1f 100644
--- a/vlc-android/src/org/videolan/vlc/MediaDatabase.java
+++ b/vlc-android/src/org/videolan/vlc/MediaDatabase.java
@@ -569,7 +569,7 @@ public class MediaDatabase {
 
             if (cursor.moveToFirst()) {
                 do {
-                    String location = cursor.getString(13);
+                    String location = cursor.getString(14);
                     Media media = new Media(location,
                             cursor.getLong(0),      // MEDIA_TIME
                             cursor.getLong(1),      // MEDIA_LENGTH
@@ -582,10 +582,10 @@ public class MediaDatabase {
                             cursor.getString(7),    // MEDIA_ALBUMARTIST
                             cursor.getInt(8),       // MEDIA_WIDTH
                             cursor.getInt(9),       // MEDIA_HEIGHT
-                            cursor.getString(10),    // MEDIA_ARTWORKURL
+                            cursor.getString(10),   // MEDIA_ARTWORKURL
                             cursor.getInt(11),      // MEDIA_AUDIOTRACK
                             cursor.getInt(12),      // MEDIA_SPUTRACK
-                            cursor.getInt(13));  // MEDIA_TRACKNUMBER
+                            cursor.getInt(13));     // MEDIA_TRACKNUMBER
                     medias.put(media.getLocation(), media);
 
                     count++;



More information about the Android mailing list