diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-10-22 21:00:13 +0200 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-10-27 23:18:56 +0000 |
commit | 6bb3e05d49f8b579cc72bcd9c44c33f7aab5e53c (patch) | |
tree | 5c173c69d78aa05ea9a557bcdd396735e1c7762b /player | |
parent | cb829879af8f2c93fd77c47f12c162d4ce580e30 (diff) | |
download | mpv-6bb3e05d49f8b579cc72bcd9c44c33f7aab5e53c.tar.bz2 mpv-6bb3e05d49f8b579cc72bcd9c44c33f7aab5e53c.tar.xz |
scripting: rename backend names for concise naming
Diffstat (limited to 'player')
-rw-r--r-- | player/javascript.c | 2 | ||||
-rw-r--r-- | player/lua.c | 2 | ||||
-rw-r--r-- | player/scripting.c | 5 |
3 files changed, 4 insertions, 5 deletions
diff --git a/player/javascript.c b/player/javascript.c index 60777baecf..5be7277bd7 100644 --- a/player/javascript.c +++ b/player/javascript.c @@ -1256,7 +1256,7 @@ static void add_functions(js_State *J, struct script_ctx *ctx) // main export of this file, used by cplayer to load js scripts const struct mp_scripting mp_scripting_js = { - .name = "javascript", + .name = "js", .file_ext = "js", .load = s_load_javascript, }; diff --git a/player/lua.c b/player/lua.c index 4a67beed2d..41fd5202fc 100644 --- a/player/lua.c +++ b/player/lua.c @@ -1335,7 +1335,7 @@ static void add_functions(struct script_ctx *ctx) } const struct mp_scripting mp_scripting_lua = { - .name = "lua script", + .name = "lua", .file_ext = "lua", .load = load_lua, }; diff --git a/player/scripting.c b/player/scripting.c index 15f3533738..ff7841bad4 100644 --- a/player/scripting.c +++ b/player/scripting.c @@ -396,11 +396,10 @@ error: ; } const struct mp_scripting mp_scripting_cplugin = { + .name = "cplugin", #if HAVE_WIN32 - .name = "DLL plugin", .file_ext = "dll", #else - .name = "SO plugin", .file_ext = "so", #endif .load = load_cplugin, @@ -458,7 +457,7 @@ static int load_run(struct mp_script_args *args) } const struct mp_scripting mp_scripting_run = { - .name = "spawned IPC process", + .name = "ipc", .file_ext = "run", .no_thread = true, .load = load_run, |