From 206616b697672d973b24330af9b094ac851f7ca4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 10 Feb 2014 21:03:59 +0100 Subject: 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. --- player/core.h | 1 - 1 file changed, 1 deletion(-) (limited to 'player/core.h') diff --git a/player/core.h b/player/core.h index d39ac64dab..10c2f1886d 100644 --- a/player/core.h +++ b/player/core.h @@ -339,7 +339,6 @@ typedef struct MPContext { struct screenshot_ctx *screenshot_ctx; struct command_ctx *command_ctx; struct encode_lavc_context *encode_lavc_ctx; - struct lua_ctx *lua_ctx; struct mp_nav_state *nav_state; } MPContext; -- cgit v1.2.3