summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-02 19:26:36 +0100
committerwm4 <wm4@nowhere>2014-12-02 20:36:55 +0100
commit980f3ea071ea4214635af1b1b457ac1af953226f (patch)
treedf0559271a11806dd043794d16550c39e464b6e4 /player
parent16025a07bbc29b25e4ac297270b90cc992be7eb9 (diff)
downloadmpv-980f3ea071ea4214635af1b1b457ac1af953226f.tar.bz2
mpv-980f3ea071ea4214635af1b1b457ac1af953226f.tar.xz
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.
Diffstat (limited to 'player')
-rw-r--r--player/client.c2
1 files changed, 2 insertions, 0 deletions
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;