summaryrefslogtreecommitdiffstats
path: root/player/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/main.c')
-rw-r--r--player/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/player/main.c b/player/main.c
index 6cb56ef601..83ded7469a 100644
--- a/player/main.c
+++ b/player/main.c
@@ -433,7 +433,8 @@ int mp_initialize(struct MPContext *mpctx, char **options)
MP_WARN(mpctx, "There will be no OSD and no text subtitles.\n");
#endif
- mp_load_scripts(mpctx);
+ if (!mp_load_scripts(mpctx))
+ return -1;
if (opts->force_vo == 2 && handle_force_window(mpctx, false) < 0)
return -1;