player: make quit exit immediately

Stopping playback canceled waiting, but executed the remainder of the
playloop, including things like executing pointless seeks.
This commit is contained in:
wm4 2014-08-03 19:14:30 +02:00
parent 575314eafa
commit 0ddbf92d06
1 changed files with 3 additions and 3 deletions

View File

@ -940,8 +940,10 @@ void run_playloop(struct MPContext *mpctx)
}
handle_loop_file(mpctx);
if (mpctx->stop_play)
mpctx->sleeptime = 0;
return;
handle_osd_redraw(mpctx);
@ -960,8 +962,6 @@ void run_playloop(struct MPContext *mpctx)
handle_sstep(mpctx);
handle_loop_file(mpctx);
handle_chapter_change(mpctx);
handle_force_window(mpctx, false);