[Android] Do not reset media when we seek to beginning
Geoffrey Métais
git at videolan.org
Wed Jun 15 11:33:23 CEST 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jun 15 11:32:06 2016 +0200| [21063d50cc6c5c9d3262b91ddf735ce8e44b35da] | committer: Geoffrey Métais
Do not reset media when we seek to beginning
> https://code.videolan.org/videolan/vlc-android/commit/21063d50cc6c5c9d3262b91ddf735ce8e44b35da
---
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 4f4b418..9714e78 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -1219,11 +1219,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