[Android] Remove harmful code in videoplayer

Geoffrey Métais git at videolan.org
Tue Nov 21 11:25:41 CET 2017


vlc-android | branch: 2.5.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Nov 20 18:20:54 2017 +0100| [0b997d90aadfb20b62d281e68bfd403ecea1987b] | committer: Geoffrey Métais

Remove harmful code in videoplayer

As loadLastPlaylist is now threaded, we cannot immediately have a
current media.

(cherry picked from commit 7b53c068ae08b8b33c484205fe8c6583e466cd7c)

> https://code.videolan.org/videolan/vlc-android/commit/0b997d90aadfb20b62d281e68bfd403ecea1987b
---

 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