summaryrefslogtreecommitdiffstats
path: root/sub/sub.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-03-01 11:27:59 +0100
committerwm4 <wm4@nowhere>2013-03-01 11:27:59 +0100
commitc9088fff86068f3fc983ec6944e648cdc3ebe0a3 (patch)
tree7612c7b65517359e1e64c37dd4e7e429ecfa054c /sub/sub.c
parent95b8585d76bf8b719dd9b82d305e169971f73570 (diff)
downloadmpv-c9088fff86068f3fc983ec6944e648cdc3ebe0a3.tar.bz2
mpv-c9088fff86068f3fc983ec6944e648cdc3ebe0a3.tar.xz
m_option: don't define OPT_BASE_STRUCT by default
OPT_BASE_STRUCT defines which struct the OPT_ macros (like OPT_INT etc.) reference implicitly, since these macros take struct member names but no struct type. Normally, only cfg-mplayer.h should need this, and other places shouldn't be bothered with having to #undef it. (Some files, like demux_lavf.c, still store their options in MPOpts. In the long term, this should be removed, and handled like e.g. with VO suboptions instead.)
Diffstat (limited to 'sub/sub.c')
-rw-r--r--sub/sub.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sub/sub.c b/sub/sub.c
index 73b446cd91..fcfbca6954 100644
--- a/sub/sub.c
+++ b/sub/sub.c
@@ -65,7 +65,6 @@ static const const struct osd_style_opts osd_style_opts_def = {
.margin_y = 10,
};
-#undef OPT_BASE_STRUCT
#define OPT_BASE_STRUCT struct osd_style_opts
const struct m_sub_options osd_style_conf = {
.opts = (m_option_t[]) {