[Android] Revert "Thread mediaplayer restarting"

Geoffrey Métais git at videolan.org
Mon Aug 21 11:34:11 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Aug 21 10:25:45 2017 +0200| [bce9ebe5bee44a9bd6097cd7345abadff2a00764] | committer: Geoffrey Métais

Revert "Thread mediaplayer restarting"

This reverts commit 67078588da0260e657ac7a0f3fd9fdb772b450b4.

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

 vlc-android/src/org/videolan/vlc/PlaybackService.java | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index 13b230113..d45fc7eaa 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -2527,14 +2527,8 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
 
     public void restartMediaPlayer() {
         stop();
-        // Thread restart while MediaPlayer.stop() is threaded.
-        VLCApplication.runBackground(new Runnable() {
-            @Override
-            public void run() {
-                mMediaPlayer.release();
-                mMediaPlayer = newMediaPlayer();
-            }
-        });
+        mMediaPlayer.release();
+        mMediaPlayer = newMediaPlayer();
         /* TODO RESUME */
     }
 



More information about the Android mailing list