[Android] VideoPlayer: don't seek to -1
Thomas Guillem
git at videolan.org
Wed Jul 1 16:58:28 CEST 2015
vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Jul 1 16:58:16 2015 +0200| [a4a42aff09cc08a9656e094e0d5fe3924317407e] | committer: Thomas Guillem
VideoPlayer: don't seek to -1
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=a4a42aff09cc08a9656e094e0d5fe3924317407e
---
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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 4c37cce..1c3710a 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -2614,7 +2614,8 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
mService.addCallback(this);
mService.load(mw);
savedIndexPosition = mService.getCurrentMediaPosition();
- seek(intentPosition, mediaLength);
+ if (intentPosition > 0 && mediaLength >= 0l)
+ seek(intentPosition, mediaLength);
} else {
mService.addCallback(this);
// AudioService-transitioned playback for item after sleep and resume
More information about the Android
mailing list