From 419624fb068ed4e7f449fa4fd0dda8edf161ac1c Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 14 Apr 2017 18:22:45 +0200 Subject: player: unmess pause state handling Merge the pause_player() and unpause_player() functions. Make sure the pause events are emitted properly. We can now set the internal pause state based on a predicate, instead of e.g. handle_pause_on_low_cache() making a mess to trigger the internal pause state as wanted. Preparation for some more changes. --- player/loadfile.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'player/loadfile.c') diff --git a/player/loadfile.c b/player/loadfile.c index 7c6894033d..1542e16e49 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -1268,8 +1268,7 @@ reopen_file: execute_queued_seek(mpctx); } - if (mpctx->opts->pause) - pause_player(mpctx); + update_internal_pause_state(mpctx); open_recorder(mpctx, true); -- cgit v1.2.3