[Android] Fix loadUri method
Geoffrey Métais
git at videolan.org
Thu Jan 21 15:10:20 CET 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jan 20 16:57:24 2016 +0100| [1bb2e7f19614b548799e02c0e3298ebe4f49fc97] | committer: Geoffrey Métais
Fix loadUri method
> https://code.videolan.org/videolan/vlc-android/commit/1bb2e7f19614b548799e02c0e3298ebe4f49fc97
---
vlc-android/src/org/videolan/vlc/PlaybackService.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index 149559f..282c69b 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -1553,7 +1553,7 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
@MainThread
public void loadUri(Uri uri) {
- String path = uri.getPath();
+ String path = uri.toString();
if (TextUtils.equals(uri.getScheme(), "content")) {
path = "file://"+ FileUtils.getPathFromURI(uri);
}
More information about the Android
mailing list