[Android] Revert "Only setMedia when we have to"

Geoffrey Métais git at videolan.org
Fri Apr 8 09:13:02 CEST 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Apr  8 09:11:33 2016 +0200| [64c734adf14ff700b6a099cd69c7a4d04b144854] | committer: Geoffrey Métais

Revert "Only setMedia when we have to"

This reverts commit 72c0f919f3d679db65b4939a22fbe76387579466.
It was breaking repeat feature

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

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

diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index 67ff3e5..0397f42 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -1698,8 +1698,7 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
         final Media media = new Media(VLCInstance.get(), mw.getUri());
         VLCOptions.setMediaOptions(media, this, flags | mw.getFlags());
         media.setEventListener(mMediaListener);
-        if (mMediaPlayer.getMedia() == null || !mw.getUri().equals(mMediaPlayer.getMedia().getUri()))
-            mMediaPlayer.setMedia(media);
+        mMediaPlayer.setMedia(media);
         media.release();
 
         if (mw .getType() != MediaWrapper.TYPE_VIDEO || mw.hasFlag(MediaWrapper.MEDIA_FORCE_AUDIO)



More information about the Android mailing list