diff options
author | wm4 <wm4@nowhere> | 2013-12-22 14:33:15 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-22 14:35:45 +0100 |
commit | e6bea0ec5a5acfed719dfbd89a812a1aa31a9ac5 (patch) | |
tree | ce3a810bbe9b030fb858e6bd0aaf270ccf15446e /options/options.c | |
parent | 8b7048b7d54d7e1a163d6efc994dbd3792812334 (diff) | |
download | mpv-e6bea0ec5a5acfed719dfbd89a812a1aa31a9ac5.tar.bz2 mpv-e6bea0ec5a5acfed719dfbd89a812a1aa31a9ac5.tar.xz |
Don't include version.h from make options.c
I find this annoying. It's the reason common/version.c exists at all.
options.c did this for the user agent, which contains the version
number. Because not including version.h means you can't build the user
agent and use it in mp_default_opts anymore, do something rather awkward
in main.c to initialize the default user agent.
Diffstat (limited to 'options/options.c')
-rw-r--r-- | options/options.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/options/options.c b/options/options.c index 0604c40b29..84005536b2 100644 --- a/options/options.c +++ b/options/options.c @@ -29,9 +29,9 @@ #include "options.h" #include "config.h" -#include "version.h" #include "m_config.h" #include "m_option.h" +#include "common/common.h" #include "stream/tv.h" #include "stream/stream_radio.h" #include "video/csputils.h" @@ -740,8 +740,6 @@ const struct MPOpts mp_default_opts = { .index_mode = -1, - .network_useragent = "mpv " VERSION, - .ad_lavc_param = { .ac3drc = 1., .downmix = 1, |