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 20:30:39 +02:00
parent 575314eafa
commit 0ddbf92d06
+3 -3
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);