[Android] Remove libVLC.util.URItoFileName

Jean-Baptiste Kempf git at videolan.org
Wed May 27 14:29:03 CEST 2015


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed May 27 13:32:48 2015 +0200| [93ad29e81e383b85b631f7de95a8539ea9ac73f0] | committer: Jean-Baptiste Kempf

Remove libVLC.util.URItoFileName

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

 libvlc/src/org/videolan/libvlc/LibVlcUtil.java     |    5 -----
 vlc-android/src/org/videolan/vlc/MediaWrapper.java |    2 +-
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/libvlc/src/org/videolan/libvlc/LibVlcUtil.java b/libvlc/src/org/videolan/libvlc/LibVlcUtil.java
index 5554256..09a72a7 100644
--- a/libvlc/src/org/videolan/libvlc/LibVlcUtil.java
+++ b/libvlc/src/org/videolan/libvlc/LibVlcUtil.java
@@ -91,11 +91,6 @@ public class LibVlcUtil {
         return new File(Uri.decode(URI).replace("file://", ""));
     }
 
-    public static String URItoFileName(String URI) {
-        if (URI == null) return null;
-        return URItoFile(URI).getName();
-    }
-
     public static boolean hasCompatibleCPU(Context context) {
         // If already checked return cached result
         if (errorMsg != null || isCompatible) return isCompatible;
diff --git a/vlc-android/src/org/videolan/vlc/MediaWrapper.java b/vlc-android/src/org/videolan/vlc/MediaWrapper.java
index ee6efa1..f4afaab 100644
--- a/vlc-android/src/org/videolan/vlc/MediaWrapper.java
+++ b/vlc-android/src/org/videolan/vlc/MediaWrapper.java
@@ -225,7 +225,7 @@ public class MediaWrapper implements Parcelable {
 
     public String getFileName() {
         if (mFilename == null) {
-            mFilename = LibVlcUtil.URItoFileName(mLocation);
+            mFilename = LibVlcUtil.URItoFile(mLocation).getAbsolutePath();
         }
         return mFilename;
     }



More information about the Android mailing list