From 92a9150cc253fb3ce21228d5b5afb6a06d7054fd Mon Sep 17 00:00:00 2001 From: Julian Date: Wed, 27 Sep 2017 01:17:47 +0200 Subject: lua: integrate stats.lua script Signed-off-by: wm4 Rename --stats to --load-stats-overlay and add an entry to options.rst over the original commit. Signed-off-by: wm4 --- options/options.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'options/options.c') diff --git a/options/options.c b/options/options.c index eae58a45a4..a0aa4a89f8 100644 --- a/options/options.c +++ b/options/options.c @@ -304,6 +304,7 @@ const m_option_t mp_opts[] = { OPT_FLAG("ytdl", lua_load_ytdl, UPDATE_BUILTIN_SCRIPTS), OPT_STRING("ytdl-format", lua_ytdl_format, 0), OPT_KEYVALUELIST("ytdl-raw-options", lua_ytdl_raw_options, 0), + OPT_FLAG("load-stats-overlay", lua_load_stats, UPDATE_BUILTIN_SCRIPTS), #endif // ------------------------- stream options -------------------- @@ -871,6 +872,7 @@ const struct MPOpts mp_default_opts = { .lua_load_ytdl = 1, .lua_ytdl_format = NULL, .lua_ytdl_raw_options = NULL, + .lua_load_stats = 1, #endif .auto_load_scripts = 1, .loop_times = 1, -- cgit v1.2.3