[Android] Handle seek to negative values
Geoffrey Métais
git at videolan.org
Mon Jul 16 15:40:23 CEST 2018
vlc-android | branch: 3.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Jul 16 15:39:40 2018 +0200| [d45dac085de3264790da639e8ef6346019b6916c] | committer: Geoffrey Métais
Handle seek to negative values
> https://code.videolan.org/videolan/vlc-android/commit/d45dac085de3264790da639e8ef6346019b6916c
---
vlc-android/src/org/videolan/vlc/PlaybackService.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index fad6e318b..6fdeb9129 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -979,7 +979,7 @@ public class PlaybackService extends MediaBrowserServiceCompat{
@Override
public void onSeekTo(long pos) {
- seek(pos);
+ seek(pos < 0 ? getTime()+pos : pos);
}
@Override
More information about the Android
mailing list