Mercurial > mplayer.hg
diff cfg-mplayer.h @ 25233:7c82d9df9c38
Make the main m_option_t arrays const
author | reimar |
---|---|
date | Sun, 02 Dec 2007 16:45:34 +0000 |
parents | ee5eccc1206d |
children | f95cd1391ea0 |
line wrap: on
line diff
--- a/cfg-mplayer.h Sun Dec 02 16:40:20 2007 +0000 +++ b/cfg-mplayer.h Sun Dec 02 16:45:34 2007 +0000 @@ -35,8 +35,8 @@ extern int menu_flip_hebrew; extern int menu_fribidi_flip_commas; -extern int vo_zr_parseoption(m_option_t* conf, char *opt, char * param); -extern void vo_zr_revertoption(m_option_t* opt,char* pram); +extern int vo_zr_parseoption(const m_option_t* conf, char *opt, char * param); +extern void vo_zr_revertoption(const m_option_t* opt,char* pram); extern m_option_t dxr2_opts[]; @@ -53,13 +53,13 @@ extern void revertPPOpt(void *conf, char* opt); extern char* pp_help; -m_option_t vd_conf[]={ +const m_option_t vd_conf[]={ {"help", "Use MPlayer with an appropriate video file instead of live partners to avoid vd.\n", CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL}, {NULL, NULL, 0, 0, 0, 0, NULL} }; #ifdef USE_TV -m_option_t tvscan_conf[]={ +const m_option_t tvscan_conf[]={ {"autostart", &stream_tv_defaults.scan, CONF_TYPE_FLAG, 0, 0, 1, NULL}, {"threshold", &stream_tv_defaults.scan_threshold, CONF_TYPE_INT, CONF_RANGE, 1, 100, NULL}, {"period", &stream_tv_defaults.scan_period, CONF_TYPE_FLOAT, CONF_RANGE, 0.1, 2.0, NULL}, @@ -79,7 +79,7 @@ * by Folke */ -m_option_t mplayer_opts[]={ +const m_option_t mplayer_opts[]={ /* name, pointer, type, flags, min, max */ //---------------------- libao/libvo options ------------------------