[Android] MediaWrapper: refactor updateMeta

Thomas Guillem git at videolan.org
Tue Jun 30 17:32:07 CEST 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Jun 30 17:18:16 2015 +0200| [c4ad76e2f6ed51fc3f2efb3e84e03ebb58508a31] | committer: Thomas Guillem

MediaWrapper: refactor updateMeta

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

 vlc-android/src/org/videolan/vlc/MediaWrapper.java |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/MediaWrapper.java b/vlc-android/src/org/videolan/vlc/MediaWrapper.java
index e3c6878..4f56172 100644
--- a/vlc-android/src/org/videolan/vlc/MediaWrapper.java
+++ b/vlc-android/src/org/videolan/vlc/MediaWrapper.java
@@ -223,13 +223,7 @@ public class MediaWrapper implements Parcelable {
         final Media media = mediaPlayer.getMedia();
         if (media == null)
             return;
-        mTitle = media.getMeta(Meta.Title);
-        mArtist = media.getMeta(Meta.Artist);
-        mGenre = media.getMeta(Meta.Genre);
-        mAlbum = media.getMeta(Meta.Album);
-        mAlbumArtist = media.getMeta(Meta.AlbumArtist);
-        mNowPlaying = media.getMeta(Meta.NowPlaying);
-        mArtworkURL = media.getMeta(Meta.ArtworkURL);
+        updateMeta(media);
         media.release();
     }
 



More information about the Android mailing list