player/main: do not print build time, if it is unknown

This commit is contained in:
Kacper Michajłow 2023-07-30 12:53:58 +02:00 committed by Dudemanguy
parent a39e75ad89
commit 14504e0559
1 changed files with 3 additions and 2 deletions

View File

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