summaryrefslogtreecommitdiffstats
path: root/mpvcore/mp_lua.c
diff options
context:
space:
mode:
authorChrisK2 <spam@kalania.de>2013-09-26 00:56:41 +0200
committerwm4 <wm4@nowhere>2013-09-26 01:29:15 +0200
commit0a0d7f43a5bc826b775d055b3bfb247e9c86bf65 (patch)
tree5537ccee07a80596a9f5cc6d60d5453d246e66d4 /mpvcore/mp_lua.c
parent6048f87e3c07d03df8a59da58c81608c5375f6dc (diff)
downloadmpv-0a0d7f43a5bc826b775d055b3bfb247e9c86bf65.tar.bz2
mpv-0a0d7f43a5bc826b775d055b3bfb247e9c86bf65.tar.xz
Add the on-screen-controller
Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'mpvcore/mp_lua.c')
-rw-r--r--mpvcore/mp_lua.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mpvcore/mp_lua.c b/mpvcore/mp_lua.c
index ec63134673..8e3dd1d98c 100644
--- a/mpvcore/mp_lua.c
+++ b/mpvcore/mp_lua.c
@@ -29,6 +29,9 @@ static const char *builtin_lua_scripts[][2] = {
{"mp.assdraw",
# include "lua/assdraw.inc"
},
+ {"@osc",
+# include "lua/osc.inc"
+ },
{0}
};
@@ -660,6 +663,8 @@ void mp_lua_init(struct MPContext *mpctx)
{
mpctx->lua_ctx = talloc_zero(NULL, struct lua_ctx);
// Load scripts from options
+ if (mpctx->opts->lua_load_osc)
+ mp_lua_load_script(mpctx, "@osc");
char **files = mpctx->opts->lua_files;
for (int n = 0; files && files[n]; n++) {
if (files[n][0])