diff options
author | wm4 <wm4@nowhere> | 2013-03-01 11:27:59 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-03-01 11:27:59 +0100 |
commit | c9088fff86068f3fc983ec6944e648cdc3ebe0a3 (patch) | |
tree | 7612c7b65517359e1e64c37dd4e7e429ecfa054c /video/out | |
parent | 95b8585d76bf8b719dd9b82d305e169971f73570 (diff) | |
download | mpv-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 'video/out')
-rw-r--r-- | video/out/vo_image.c | 1 | ||||
-rw-r--r-- | video/out/vo_sdl.c | 1 | ||||
-rw-r--r-- | video/out/vo_vdpau.c | 1 |
3 files changed, 0 insertions, 3 deletions
diff --git a/video/out/vo_image.c b/video/out/vo_image.c index d39df5851c..32ab26dafe 100644 --- a/video/out/vo_image.c +++ b/video/out/vo_image.c @@ -180,7 +180,6 @@ static int control(struct vo *vo, uint32_t request, void *data) return VO_NOTIMPL; } -#undef OPT_BASE_STRUCT #define OPT_BASE_STRUCT struct priv const struct vo_driver video_out_image = diff --git a/video/out/vo_sdl.c b/video/out/vo_sdl.c index 45486afbfd..5f1e4317ed 100644 --- a/video/out/vo_sdl.c +++ b/video/out/vo_sdl.c @@ -1014,7 +1014,6 @@ static int control(struct vo *vo, uint32_t request, void *data) return VO_NOTIMPL; } -#undef OPT_BASE_STRUCT #define OPT_BASE_STRUCT struct priv const struct vo_driver video_out_sdl = { diff --git a/video/out/vo_vdpau.c b/video/out/vo_vdpau.c index e46e4639b6..6b35176bfb 100644 --- a/video/out/vo_vdpau.c +++ b/video/out/vo_vdpau.c @@ -1618,7 +1618,6 @@ static int control(struct vo *vo, uint32_t request, void *data) return VO_NOTIMPL; } -#undef OPT_BASE_STRUCT #define OPT_BASE_STRUCT struct vdpctx const struct vo_driver video_out_vdpau = { |