summaryrefslogtreecommitdiffstats
path: root/player/loadfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/loadfile.c')
-rw-r--r--player/loadfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/player/loadfile.c b/player/loadfile.c
index 0ae59a0e65..5dd8b7efbf 100644
--- a/player/loadfile.c
+++ b/player/loadfile.c
@@ -1409,8 +1409,8 @@ static void play_current_file(struct MPContext *mpctx)
reset_playback_state(mpctx);
mpctx->playing = mpctx->playlist->current;
- if (!mpctx->playing || !mpctx->playing->filename)
- goto terminate_playback;
+ assert(mpctx->playing);
+ assert(mpctx->playing->filename);
mpctx->playing->reserved += 1;
mpctx->filename = talloc_strdup(NULL, mpctx->playing->filename);