From 14504e0559f8de95d16a123f1a4b5218425ba36b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Sun, 30 Jul 2023 12:53:58 +0200 Subject: [PATCH] player/main: do not print build time, if it is unknown --- player/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/player/main.c b/player/main.c index 91b17dc66d..f38ed58aec 100644 --- a/player/main.c +++ b/player/main.c @@ -150,8 +150,9 @@ void mp_update_logging(struct MPContext *mpctx, bool preinit) void mp_print_version(struct mp_log *log, int always) { int v = always ? MSGL_INFO : MSGL_V; - mp_msg(log, v, "%s %s\n built on %s\n", - mpv_version, mpv_copyright, mpv_builddate); + mp_msg(log, v, "%s %s\n", mpv_version, mpv_copyright); + if (strcmp(mpv_builddate, "UNKNOWN")) + mp_msg(log, v, " built on %s\n", mpv_builddate); #if HAVE_LIBPLACEBO mp_msg(log, v, "libplacebo version: %s\n", PL_VERSION); #endif