diff options
Diffstat (limited to 'player')
-rw-r--r-- | player/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/player/main.c b/player/main.c index 70697a2a6e..8894988e99 100644 --- a/player/main.c +++ b/player/main.c @@ -56,6 +56,7 @@ #include "demux/demux.h" #include "misc/thread_tools.h" #include "sub/osd.h" +#include "test/index.h" #include "video/out/vo.h" #include "core.h" @@ -427,6 +428,11 @@ int mp_initialize(struct MPContext *mpctx, char **options) if (opts->force_vo == 2 && handle_force_window(mpctx, false) < 0) return -1; +#if HAVE_TESTS + if (opts->test_mode && opts->test_mode[0]) + return run_tests(mpctx) ? 1 : -1; +#endif + MP_STATS(mpctx, "end init"); return 0; |