mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 15:22:09 +00:00
scripting: don't attempt to load builtin scripts twice
During init it will first call mp_load_builtin_scripts(), and then again via mp_load_scripts(). This was harmless (a second attempt won't load it again if the first one was successful), but it's unnecessary, and also looks confusing if the scripts failed to load the first time.
This commit is contained in:
parent
0f110ad0e2
commit
a314b1013f
@ -210,7 +210,6 @@ void mp_load_builtin_scripts(struct MPContext *mpctx)
|
|||||||
void mp_load_scripts(struct MPContext *mpctx)
|
void mp_load_scripts(struct MPContext *mpctx)
|
||||||
{
|
{
|
||||||
// Load scripts from options
|
// Load scripts from options
|
||||||
mp_load_builtin_scripts(mpctx);
|
|
||||||
char **files = mpctx->opts->script_files;
|
char **files = mpctx->opts->script_files;
|
||||||
for (int n = 0; files && files[n]; n++) {
|
for (int n = 0; files && files[n]; n++) {
|
||||||
if (files[n][0])
|
if (files[n][0])
|
||||||
|
Loading…
Reference in New Issue
Block a user