summaryrefslogtreecommitdiffstats
path: root/player/loadfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/loadfile.c')
-rw-r--r--player/loadfile.c8
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;