Commit a88f93d6 authored by Thomas Guillem's avatar Thomas Guillem

VideoPlayer: fix seek at opening

The length can be negative during initialisation.
parent 1af07e5d
......@@ -2507,7 +2507,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
private void seek(long position, float length) {
mForcedTime = position;
mLastTime = mService.getTime();
if (length == 0f)
if (length <= 0f)
mService.setTime(position);
else
mService.setPosition(position / length);
......
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