diff options
author | wm4 <wm4@nowhere> | 2016-09-16 14:24:15 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-16 14:39:45 +0200 |
commit | 03fec24e192ea1b5c0cf957a5a64c0db9d33e67a (patch) | |
tree | 75f58b93ce56c3f6cd3afdbd3ce028f93dcf35bb /player/core.h | |
parent | b8ade7c99b830ee9870040bcfc1f2c3d3a64d172 (diff) | |
download | mpv-03fec24e192ea1b5c0cf957a5a64c0db9d33e67a.tar.bz2 mpv-03fec24e192ea1b5c0cf957a5a64c0db9d33e67a.tar.xz |
player: litter code with explicit wakeup calls
This does 3 kinds of changes:
- change sleeptime=x to mp_set_timeout()
- change sleeptime=0 to mp_wakeup_core() calls (to be more explicit)
- change commands etc. to call mp_wakeup_core() if they do changes that
require the playloop to be rerun
This is preparation for the following changes. The goal is to process
client API requests without having to rerun the playloop every time. As
of this commit, the changes should not change behavior. In particular,
the playloop is still implicitly woken up on every command.
Diffstat (limited to 'player/core.h')
-rw-r--r-- | player/core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/player/core.h b/player/core.h index 3fa2c102b4..c39f316276 100644 --- a/player/core.h +++ b/player/core.h @@ -511,6 +511,7 @@ void set_osd_bar_chapters(struct MPContext *mpctx, int type); // playloop.c void mp_wait_events(struct MPContext *mpctx, double sleeptime); +void mp_set_timeout(struct MPContext *mpctx, double sleeptime); void mp_wakeup_core(struct MPContext *mpctx); void mp_wakeup_core_cb(void *ctx); void mp_process_input(struct MPContext *mpctx); |