summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorJulian <MyFakeAcc.4@googlemail.com>2017-09-27 01:17:47 +0200
committerwm4 <wm4@nowhere>2017-10-09 20:47:33 +0200
commit92a9150cc253fb3ce21228d5b5afb6a06d7054fd (patch)
tree3eb6ee3988d455877b5101cde0e218199216c7b6 /player
parentc38ad6ae6fec6f7190702e3d8a909fdd08a413be (diff)
downloadmpv-92a9150cc253fb3ce21228d5b5afb6a06d7054fd.tar.bz2
mpv-92a9150cc253fb3ce21228d5b5afb6a06d7054fd.tar.xz
lua: integrate stats.lua script
Signed-off-by: wm4 <wm4@nowhere> Rename --stats to --load-stats-overlay and add an entry to options.rst over the original commit. Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'player')
-rw-r--r--player/lua.c3
-rw-r--r--player/scripting.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/player/lua.c b/player/lua.c
index b3e4fe8317..cf754b661b 100644
--- a/player/lua.c
+++ b/player/lua.c
@@ -69,6 +69,9 @@ static const char * const builtin_lua_scripts[][2] = {
{"@ytdl_hook.lua",
# include "player/lua/ytdl_hook.inc"
},
+ {"@stats.lua",
+# include "player/lua/stats.inc"
+ },
{0}
};
diff --git a/player/scripting.c b/player/scripting.c
index 5651950a42..4073da765d 100644
--- a/player/scripting.c
+++ b/player/scripting.c
@@ -220,6 +220,7 @@ void mp_load_builtin_scripts(struct MPContext *mpctx)
{
load_builtin_script(mpctx, mpctx->opts->lua_load_osc, "@osc.lua");
load_builtin_script(mpctx, mpctx->opts->lua_load_ytdl, "@ytdl_hook.lua");
+ load_builtin_script(mpctx, mpctx->opts->lua_load_stats, "@stats.lua");
}
void mp_load_scripts(struct MPContext *mpctx)