[Android] Do not reset media when we seek to beginning

Geoffrey Métais git at videolan.org
Wed Jun 15 13:59:19 CEST 2016


vlc-android | branch: 2.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jun 15 11:32:06 2016 +0200| [bc4a254a63d60fa30a3ebfcccee62004ba6c4914] | committer: Geoffrey Métais

Do not reset media when we seek to beginning

(cherry picked from commit 21063d50cc6c5c9d3262b91ddf735ce8e44b35da)

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

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

diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index 7c0126a..4fa13f9 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -1235,11 +1235,10 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
                 stop();
                 return;
             }
+            playIndex(mCurrentIndex, 0);
+            saveCurrentMedia();
         } else
             setPosition(0f);
-
-        playIndex(mCurrentIndex, 0);
-        saveCurrentMedia();
     }
 
     @MainThread



More information about the Android mailing list