[Android] Do not convert media uri in video player

Geoffrey Métais git at videolan.org
Fri Oct 13 16:28:38 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Oct 12 15:56:17 2017 +0200| [4eeb75ebabdee4202c9126994069b649ec68f4de] | committer: Geoffrey Métais

Do not convert media uri in video player

> https://code.videolan.org/videolan/vlc-android/commit/4eeb75ebabdee4202c9126994069b649ec68f4de
---

 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 7525877fe..786e1b8fb 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -3204,7 +3204,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
             MediaWrapper media;
             if (!resumePlaylist) {
                 // restore last position
-                media = mMedialibrary.getMedia("content".equals(mUri.getScheme()) ? FileUtils.getUri(mUri) : mUri);
+                media = mMedialibrary.getMedia(mUri);
                 if (media == null && TextUtils.equals(mUri.getScheme(), "file") &&
                         mUri.getPath() != null && mUri.getPath().startsWith("/sdcard")) {
                     mUri = FileUtils.convertLocalUri(mUri);



More information about the Android mailing list