diff options
author | wm4 <wm4@nowhere> | 2014-10-10 15:13:04 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-10 15:13:04 +0200 |
commit | 4758866a1821efb6fa022b7bde45fabbe6cbdd58 (patch) | |
tree | 19384ea927fe1643ab6e64fc419237246ce2854d /player/loadfile.c | |
parent | ad541c26f7106e8f10e89b2318005cd805a98f85 (diff) | |
download | mpv-4758866a1821efb6fa022b7bde45fabbe6cbdd58.tar.bz2 mpv-4758866a1821efb6fa022b7bde45fabbe6cbdd58.tar.xz |
player: minor simplification
Diffstat (limited to 'player/loadfile.c')
-rw-r--r-- | player/loadfile.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/player/loadfile.c b/player/loadfile.c index 2c0709dda7..cf6227e7a4 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -1329,14 +1329,8 @@ void mp_play_files(struct MPContext *mpctx) if (mpctx->stop_play == PT_NEXT_ENTRY) { new_entry = mp_next_file(mpctx, +1, false); - } else if (mpctx->stop_play == PT_CURRENT_ENTRY) { - new_entry = mpctx->playlist->current; - } else if (mpctx->stop_play == PT_RESTART) { - // The same as PT_CURRENT_ENTRY, unless we decide that the current - // playlist entry can be removed during playback. + } else { new_entry = mpctx->playlist->current; - } else { // PT_STOP - playlist_clear(mpctx->playlist); } mpctx->playlist->current = new_entry; |