[Android] No internal stored subs for fd:// uris
Geoffrey Métais
git at videolan.org
Wed Jun 8 18:16:14 CEST 2016
vlc-android | branch: 2.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jun 8 18:13:42 2016 +0200| [dc5273233c99b83f699bdb7ee27804baeed9db0f] | committer: Geoffrey Métais
No internal stored subs for fd:// uris
(cherry picked from commit 2fe2fab6190e0ee3ab3ee18d5c46fd7f019ee836)
> https://code.videolan.org/videolan/vlc-android/commit/dc5273233c99b83f699bdb7ee27804baeed9db0f
---
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 3 ++-
1 file changed, 2 insertions(+), 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 0fcaefd..8481199 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -3038,7 +3038,8 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
catch (StreamCorruptedException e) {}
catch (IOException e) {}
}
- prefsList.addAll(MediaDatabase.getInstance().getSubtitles(mUri.getLastPathSegment()));
+ if (!TextUtils.equals(mUri.getScheme(), "fd"))
+ prefsList.addAll(MediaDatabase.getInstance().getSubtitles(mUri.getLastPathSegment()));
for(String x : prefsList){
if(!mSubtitleSelectedFiles.contains(x))
mSubtitleSelectedFiles.add(x);
More information about the Android
mailing list