summaryrefslogtreecommitdiffstats
path: root/player/playloop.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-02-10 21:03:59 +0100
committerwm4 <wm4@nowhere>2014-02-10 21:03:59 +0100
commit206616b697672d973b24330af9b094ac851f7ca4 (patch)
tree5baea012aa584c11f573373c1c7cbeddced209f5 /player/playloop.c
parent88ae914b1ef2b76362c527985bd459b0d8226d45 (diff)
downloadmpv-206616b697672d973b24330af9b094ac851f7ca4.tar.bz2
mpv-206616b697672d973b24330af9b094ac851f7ca4.tar.xz
lua: port to client API
This is partial only, and it still accesses some MPContext internals. Specifically, chapter and track lists are still read directly, and OSD access is special-cased too. The OSC seems to work fine, except using the fast-forward/backward buttons. These buttons behave differently, because the OSC code had certain assumptions how often its update code is called. The Lua interface changes slightly. Note that this has the odd property that Lua script and video start at the same time, asynchronously. If this becomes an issue, explicit synchronization could be added.
Diffstat (limited to 'player/playloop.c')
-rw-r--r--player/playloop.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/player/playloop.c b/player/playloop.c
index d97fedccbc..57d5281240 100644
--- a/player/playloop.c
+++ b/player/playloop.c
@@ -747,8 +747,6 @@ static void handle_cursor_autohide(struct MPContext *mpctx)
static void handle_input_and_seek_coalesce(struct MPContext *mpctx)
{
- mp_flush_events(mpctx);
-
mp_cmd_t *cmd;
while ((cmd = mp_input_get_cmd(mpctx->input, 0, 1)) != NULL) {
mp_dispatch_queue_process(mpctx->dispatch, 0);
@@ -1340,7 +1338,6 @@ void idle_loop(struct MPContext *mpctx)
if (cmd)
run_command(mpctx, cmd);
mp_cmd_free(cmd);
- mp_flush_events(mpctx);
mp_dispatch_queue_process(mpctx->dispatch, 0);
if (mpctx->opts->use_terminal)
getch2_poll();