mirror of https://github.com/mpv-player/mpv
test/libmpv_encode: print logs also during initialize
This commit is contained in:
parent
8a9901963d
commit
09c359e1d3
|
@ -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};
|
||||||
|
|
Loading…
Reference in New Issue