From 0eb21226cbfdd200f2aea5d3a9db2cdbff4773a5 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 14 Mar 2012 10:29:35 +0100 Subject: Use "mplayer2" in version string, not "MPlayer2" The name "MPlayer2" isn't used anywhere. It's either "MPlayer" or "mplayer2". Make it more consistent by using "mplayer2" instead. Note that the version string passed as network user-agent changes from "MPlayer" to "mplayer2" as well. --- mpcommon.c | 2 +- mplayer.c | 8 ++++---- version.sh | 2 -- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/mpcommon.c b/mpcommon.c index 47c056a08e..95c21ead65 100644 --- a/mpcommon.c +++ b/mpcommon.c @@ -18,4 +18,4 @@ #include "version.h" -const char *mplayer_version = "MPlayer " VERSION; +const char *mplayer_version = "mplayer2 " VERSION; diff --git a/mplayer.c b/mplayer.c index 79f5719339..41aea2476d 100644 --- a/mplayer.c +++ b/mplayer.c @@ -79,7 +79,6 @@ #include "sub/av_sub.h" #include "libmpcodecs/dec_teletext.h" #include "cpudetect.h" -#include "version.h" #ifdef CONFIG_X11 #include "libvo/x11_common.h" @@ -3899,9 +3898,10 @@ static int select_audio(demuxer_t *demuxer, int audio_id, char **audio_lang) return demuxer->audio->id; } -static void print_version(const char *name) +static void print_version(void) { - mp_msg(MSGT_CPLAYER, MSGL_INFO, MP_TITLE, name); + mp_msg(MSGT_CPLAYER, MSGL_INFO, + "%s (C) 2000-2012 MPlayer & mplayer2 teams\n", mplayer_version); /* Test for CPU capabilities (and corresponding OS support) for optimizing */ GetCpuCaps(&gCpuCaps); @@ -4031,7 +4031,7 @@ int main(int argc, char *argv[]) } } - print_version("MPlayer2"); + print_version(); #if defined(__MINGW32__) || defined(__CYGWIN__) { diff --git a/version.sh b/version.sh index 6f3be92639..73905f05fc 100755 --- a/version.sh +++ b/version.sh @@ -15,12 +15,10 @@ test $version || version=$git_revision NEW_REVISION="#define VERSION \"${version}${extra}\"" OLD_REVISION=$(head -n 1 version.h 2> /dev/null) -TITLE='#define MP_TITLE "%s "VERSION" (C) 2000-2012 MPlayer Team\n"' # Update version.h only on revision changes to avoid spurious rebuilds if test "$NEW_REVISION" != "$OLD_REVISION"; then cat < version.h $NEW_REVISION -$TITLE EOF fi -- cgit v1.2.3