Skip to content
Snippets Groups Projects
Commit dd0ca244 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Go to previous media if current is not seekable

parent ef085885
No related branches found
No related tags found
No related merge requests found
......@@ -1221,7 +1221,8 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
@MainThread
public void previous() {
int size = mMediaList.size();
if (hasPrevious() && mCurrentIndex > 0 && mMediaPlayer.getTime() < 2000l) {
if (hasPrevious() && mCurrentIndex > 0 &&
(!mMediaPlayer.isSeekable() || mMediaPlayer.getTime() < 2000l)) {
mCurrentIndex = mPrevIndex;
if (mPrevious.size() > 0)
mPrevious.pop();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment