summaryrefslogtreecommitdiffstats
path: root/player/loadfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/loadfile.c')
-rw-r--r--player/loadfile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/player/loadfile.c b/player/loadfile.c
index b8dab59b66..d6ff75d668 100644
--- a/player/loadfile.c
+++ b/player/loadfile.c
@@ -1488,6 +1488,7 @@ struct playlist_entry *mp_next_file(struct MPContext *mpctx, int direction,
// Return if all done.
void mp_play_files(struct MPContext *mpctx)
{
+ mp_input_set_main_thread(mpctx->input);
mpctx->quit_player_rc = EXIT_NONE;
for (;;) {
idle_loop(mpctx);