test/libmpv_encode: print logs also during initialize

This commit is contained in:
Kacper Michajłow 2024-05-22 00:52:09 +02:00
parent 8a9901963d
commit 09c359e1d3
1 changed files with 2 additions and 2 deletions

View File

@ -122,12 +122,12 @@ int main(int argc, char *argv[])
check_api_error(mpv_set_option_string(ctx, "o", out_path)); check_api_error(mpv_set_option_string(ctx, "o", out_path));
check_api_error(mpv_set_option_string(ctx, "of", "matroska")); check_api_error(mpv_set_option_string(ctx, "of", "matroska"));
check_api_error(mpv_set_option_string(ctx, "end", "1.5")); check_api_error(mpv_set_option_string(ctx, "end", "1.5"));
check_api_error(mpv_set_option_string(ctx, "terminal", "yes"));
check_api_error(mpv_set_option_string(ctx, "msg-level", "all=v"));
if (mpv_initialize(ctx) != 0) if (mpv_initialize(ctx) != 0)
return 1; return 1;
check_api_error(mpv_set_option_string(ctx, "terminal", "yes"));
check_api_error(mpv_set_option_string(ctx, "msg-level", "all=v"));
check_api_error(mpv_set_option_string(ctx, "idle", "once")); check_api_error(mpv_set_option_string(ctx, "idle", "once"));
const char *cmd[] = {"loadfile", "av://lavfi:testsrc", NULL}; const char *cmd[] = {"loadfile", "av://lavfi:testsrc", NULL};