summaryrefslogtreecommitdiffstats
path: root/mpvcore/mplayer.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-10-14 19:48:58 +0200
committerwm4 <wm4@nowhere>2013-10-14 20:14:17 +0200
commit0f1764195a8b818ecafed37841e4c48d9f4718da (patch)
treed1981602258b77e5e903973e2d619eccd90134f7 /mpvcore/mplayer.c
parent683da7411e6872de117cb36a6f175e8934b29d9e (diff)
downloadmpv-0f1764195a8b818ecafed37841e4c48d9f4718da.tar.bz2
mpv-0f1764195a8b818ecafed37841e4c48d9f4718da.tar.xz
mplayer: print ffmpeg library versions along with mpv version info
Also change what the FFmpeg version info looks like, and additionally dump lavfi/lavr/lswr versions. (Don't bother with libavdevice and libpostproc, they're not important enough.) Unfortunately, there's no "single" FFmpeg/Libav version due to fatal braindeath on the FFmpeg/Libav side. We can't map the versions to releases either (it simply isn't accessible anywhere).
Diffstat (limited to 'mpvcore/mplayer.c')
-rw-r--r--mpvcore/mplayer.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mpvcore/mplayer.c b/mpvcore/mplayer.c
index 1d4be97605..6800f84a7f 100644
--- a/mpvcore/mplayer.c
+++ b/mpvcore/mplayer.c
@@ -4822,8 +4822,11 @@ void mp_set_playlist_entry(struct MPContext *mpctx, struct playlist_entry *e)
void mp_print_version(int always)
{
- mp_msg(MSGT_CPLAYER, always ? MSGL_INFO : MSGL_V,
+ int v = always ? MSGL_INFO : MSGL_V;
+ mp_msg(MSGT_CPLAYER, v,
"%s (C) 2000-2013 mpv/MPlayer/mplayer2 projects\n built on %s\n", mplayer_version, mplayer_builddate);
+ print_libav_versions(v);
+ mp_msg(MSGT_CPLAYER, v, "\n");
}
static bool handle_help_options(struct MPContext *mpctx)
@@ -4950,7 +4953,6 @@ static int mpv_main(int argc, char *argv[])
m_config_preparse_command_line(mpctx->mconfig, argc, argv);
mp_print_version(false);
- print_libav_versions();
if (!parse_cfgfiles(mpctx, mpctx->mconfig))
exit_player(mpctx, EXIT_ERROR);