player/main: log libplacebo version if built with it

As we start basing more and more functionality on it, it makes
sense to start logging it more visibly as part of --version.
This commit is contained in:
Jan Ekström 2022-11-13 14:49:32 +02:00
parent 8bbe39a858
commit 0f0520aeca
1 changed files with 8 additions and 0 deletions

View File

@ -25,6 +25,11 @@
#include <locale.h>
#include "config.h"
#if HAVE_LIBPLACEBO
#include <libplacebo/config.h>
#endif
#include "mpv_talloc.h"
#include "misc/dispatch.h"
@ -144,6 +149,9 @@ 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);
#if HAVE_LIBPLACEBO
mp_msg(log, v, "libplacebo version: %s\n", PL_VERSION);
#endif
check_library_versions(log, v);
mp_msg(log, v, "\n");
// Only in verbose mode.