[Android] VideoPlayerActivity: use Media directly

Edward Wang git at videolan.org
Mon Oct 28 04:14:41 CET 2013


vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Sun Oct 27 18:50:47 2013 -0400| [333e8c6d902fcf9e9497a29fb6cf90ba20990c1e] | committer: Edward Wang

VideoPlayerActivity: use Media directly

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

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 529d3d1..106e07a 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1525,7 +1525,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
             mLibVLC.playIndex(savedIndexPosition);
         } else if (mLocation != null && mLocation.length() > 0 && !dontParse) {
             mLibVLC.setMediaList();
-            mLibVLC.getMediaList().add(mLocation, false);
+            mLibVLC.getMediaList().add(new Media(mLocation, false));
             savedIndexPosition = mLibVLC.getMediaList().size() - 1;
             mLibVLC.playIndex(savedIndexPosition);
         }



More information about the Android mailing list