From 980f3ea071ea4214635af1b1b457ac1af953226f Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 2 Dec 2014 19:26:36 +0100 Subject: 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. --- player/client.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'player') diff --git a/player/client.c b/player/client.c index eaead01006..4d903941d7 100644 --- a/player/client.c +++ b/player/client.c @@ -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; -- cgit v1.2.3