From 0ddbf92d067e342ef58fbd60e1c4871feba83ea5 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 3 Aug 2014 19:14:30 +0200 Subject: player: make quit exit immediately Stopping playback canceled waiting, but executed the remainder of the playloop, including things like executing pointless seeks. --- player/playloop.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'player') diff --git a/player/playloop.c b/player/playloop.c index 7d3309a583..f8904af028 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -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); -- cgit v1.2.3