[Android] Remove harmful code in videoplayer
Geoffrey Métais
git at videolan.org
Tue Nov 21 11:02:37 CET 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Nov 20 18:20:54 2017 +0100| [7b53c068ae08b8b33c484205fe8c6583e466cd7c] | committer: Geoffrey Métais
Remove harmful code in videoplayer
As loadLastPlaylist is now threaded, we cannot immediately have a
current media.
> https://code.videolan.org/videolan/vlc-android/commit/7b53c068ae08b8b33c484205fe8c6583e466cd7c
---
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 6 ------
1 file changed, 6 deletions(-)
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 6dfcdacf6..6dce46e77 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -3290,12 +3290,6 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
title = mUri.getLastPathSegment();
} else {
mService.loadLastPlaylist(PlaybackService.TYPE_VIDEO);
- MediaWrapper mw = mService.getCurrentMediaWrapper();
- if (mw == null) {
- finish();
- return;
- }
- mUri = mService.getCurrentMediaWrapper().getUri();
}
if (itemTitle != null)
title = itemTitle;
More information about the Android
mailing list