diff options
author | wm4 <wm4@nowhere> | 2017-04-14 18:22:45 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-04-14 18:22:45 +0200 |
commit | 419624fb068ed4e7f449fa4fd0dda8edf161ac1c (patch) | |
tree | d74b3c2c12fdf79aa8bb8cc6f289b7b7d7e2ceca /player/core.h | |
parent | ae0a40259fa9ce45d34c966da067e20a69156330 (diff) | |
download | mpv-419624fb068ed4e7f449fa4fd0dda8edf161ac1c.tar.bz2 mpv-419624fb068ed4e7f449fa4fd0dda8edf161ac1c.tar.xz |
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.
Diffstat (limited to 'player/core.h')
-rw-r--r-- | player/core.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/player/core.h b/player/core.h index b958db56d5..1e1c7f0baa 100644 --- a/player/core.h +++ b/player/core.h @@ -558,8 +558,8 @@ void mp_wakeup_core_cb(void *ctx); void mp_process_input(struct MPContext *mpctx); double get_relative_time(struct MPContext *mpctx); void reset_playback_state(struct MPContext *mpctx); -void pause_player(struct MPContext *mpctx); -void unpause_player(struct MPContext *mpctx); +void set_pause_state(struct MPContext *mpctx, bool user_pause); +void update_internal_pause_state(struct MPContext *mpctx); void add_step_frame(struct MPContext *mpctx, int dir); void queue_seek(struct MPContext *mpctx, enum seek_type type, double amount, enum seek_precision exact, int flags); |