[Android] No internal stored subs for fd:// uris
Geoffrey Métais
git at videolan.org
Wed Jun 8 18:15:31 CEST 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jun 8 18:13:42 2016 +0200| [2fe2fab6190e0ee3ab3ee18d5c46fd7f019ee836] | committer: Geoffrey Métais
No internal stored subs for fd:// uris
> https://code.videolan.org/videolan/vlc-android/commit/2fe2fab6190e0ee3ab3ee18d5c46fd7f019ee836
---
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 bbe082c..9508f00 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