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:
wm4 2014-12-02 19:26:36 +01:00
parent 16025a07bb
commit 980f3ea071
1 changed files with 2 additions and 0 deletions

View File

@ -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;