mirror of https://github.com/mpv-player/mpv
player/main: do not print build time, if it is unknown
This commit is contained in:
parent
a39e75ad89
commit
14504e0559
|
@ -150,8 +150,9 @@ void mp_update_logging(struct MPContext *mpctx, bool preinit)
|
||||||
void mp_print_version(struct mp_log *log, int always)
|
void mp_print_version(struct mp_log *log, int always)
|
||||||
{
|
{
|
||||||
int v = always ? MSGL_INFO : MSGL_V;
|
int v = always ? MSGL_INFO : MSGL_V;
|
||||||
mp_msg(log, v, "%s %s\n built on %s\n",
|
mp_msg(log, v, "%s %s\n", mpv_version, mpv_copyright);
|
||||||
mpv_version, mpv_copyright, mpv_builddate);
|
if (strcmp(mpv_builddate, "UNKNOWN"))
|
||||||
|
mp_msg(log, v, " built on %s\n", mpv_builddate);
|
||||||
#if HAVE_LIBPLACEBO
|
#if HAVE_LIBPLACEBO
|
||||||
mp_msg(log, v, "libplacebo version: %s\n", PL_VERSION);
|
mp_msg(log, v, "libplacebo version: %s\n", PL_VERSION);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue