summaryrefslogtreecommitdiffstats
path: root/core/mplayer.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-05-15 15:14:24 +0200
committerwm4 <wm4@nowhere>2013-05-15 15:14:24 +0200
commit894288457bb035127c7459c462bd711c6080572f (patch)
tree201622027a9e131d5660819d3a597a970802d21d /core/mplayer.c
parent4930681e7a361e108d9554fa0d8dd2d40d3b4c2e (diff)
downloadmpv-894288457bb035127c7459c462bd711c6080572f.tar.bz2
mpv-894288457bb035127c7459c462bd711c6080572f.tar.xz
options: add --version
Diffstat (limited to 'core/mplayer.c')
-rw-r--r--core/mplayer.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/mplayer.c b/core/mplayer.c
index abd306426d..b0eaeffe6d 100644
--- a/core/mplayer.c
+++ b/core/mplayer.c
@@ -4566,6 +4566,13 @@ static void print_version(int always)
"%s (C) 2000-2013 mpv/MPlayer/mplayer2 projects\n built on %s\n", mplayer_version, mplayer_builddate);
}
+static int print_version_opt(const m_option_t *opt, const char *name,
+ const char *param)
+{
+ print_version(true);
+ exit(0);
+}
+
static bool handle_help_options(struct MPContext *mpctx)
{
struct MPOpts *opts = &mpctx->opts;