Commit 695080a8 authored by Alexandre Perraud's avatar Alexandre Perraud Committed by Jean-Baptiste Kempf

Do not seek before 0

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent e2bbf021
......@@ -752,8 +752,9 @@ public class VideoPlayerActivity extends Activity {
@Override
public void onSeek(int delta) {
long position = mLibVLC.getTime();
mLibVLC.setTime(position + delta);
long position = mLibVLC.getTime() + delta;
if (position < 0) position = 0;
mLibVLC.setTime(position);
showOverlay();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment