diff options
author | Jan Ekström <jeebjp@gmail.com> | 2022-11-13 14:49:32 +0200 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2022-11-15 21:41:22 +0200 |
commit | 0f0520aeca367613d313dbf2e936ea2cacdb35c9 (patch) | |
tree | 81a025e950df2202e7be607828e61dd2f846162f /player/main.c | |
parent | 8bbe39a8587ebc2f6c51063d004f517ac4df9646 (diff) | |
download | mpv-0f0520aeca367613d313dbf2e936ea2cacdb35c9.tar.bz2 mpv-0f0520aeca367613d313dbf2e936ea2cacdb35c9.tar.xz |
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.
Diffstat (limited to 'player/main.c')
-rw-r--r-- | player/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/player/main.c b/player/main.c index 1c1cdf9f29..2f4bede898 100644 --- a/player/main.c +++ b/player/main.c @@ -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. |