diff options
author | wm4 <wm4@nowhere> | 2018-03-07 22:32:32 +0100 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2018-03-08 17:12:32 -0800 |
commit | 93fb79166b4154281c66df3201cf55d9d0986fc5 (patch) | |
tree | 42ff81d66dd07c29b0ecd879a30e65329e146390 | |
parent | 8ecd404264f2dbf885403fa1e569b0ab45496f60 (diff) | |
download | mpv-93fb79166b4154281c66df3201cf55d9d0986fc5.tar.bz2 mpv-93fb79166b4154281c66df3201cf55d9d0986fc5.tar.xz |
scripting: make a function static
-rw-r--r-- | player/core.h | 1 | ||||
-rw-r--r-- | player/scripting.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/player/core.h b/player/core.h index bfc5f662a4..25c006f2e4 100644 --- a/player/core.h +++ b/player/core.h @@ -586,7 +586,6 @@ struct mp_scripting { }; void mp_load_scripts(struct MPContext *mpctx); void mp_load_builtin_scripts(struct MPContext *mpctx); -int mp_load_script(struct MPContext *mpctx, const char *fname); int mp_load_user_script(struct MPContext *mpctx, const char *fname); // sub.c diff --git a/player/scripting.c b/player/scripting.c index 38e8809020..db622f0fe8 100644 --- a/player/scripting.c +++ b/player/scripting.c @@ -107,7 +107,7 @@ static void wait_loaded(struct MPContext *mpctx) mp_wakeup_core(mpctx); // avoid lost wakeups during waiting } -int mp_load_script(struct MPContext *mpctx, const char *fname) +static int mp_load_script(struct MPContext *mpctx, const char *fname) { char *ext = mp_splitext(fname, NULL); const struct mp_scripting *backend = NULL; |