mirror of https://github.com/mpv-player/mpv
client API: print version on initialization
A rather big oversight, because a log produced with the client API will not contain the mpv version at all otherwise.
This commit is contained in:
parent
16025a07bb
commit
980f3ea071
|
@ -445,6 +445,8 @@ int mpv_initialize(mpv_handle *ctx)
|
|||
if (mp_initialize(ctx->mpctx) < 0)
|
||||
return MPV_ERROR_INVALID_PARAMETER;
|
||||
|
||||
mp_print_version(ctx->mpctx->log, false);
|
||||
|
||||
pthread_t thread;
|
||||
if (pthread_create(&thread, NULL, playback_thread, ctx->mpctx) != 0)
|
||||
return MPV_ERROR_NOMEM;
|
||||
|
|
Loading…
Reference in New Issue