diff options
author | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-23 07:01:31 +0300 |
---|---|---|
committer | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-23 13:48:38 +0300 |
commit | c0c914effd94324362e4ca70204f1b08783f6121 (patch) | |
tree | 5e0c11787d1e44b03dc27c877cd43195c75cf630 /cfg-common-opts.h | |
parent | f518cf7ea99e9282508f551ecb43892f6aabcbc4 (diff) | |
download | mpv-c0c914effd94324362e4ca70204f1b08783f6121.tar.bz2 mpv-c0c914effd94324362e4ca70204f1b08783f6121.tar.xz |
Move audio_id and video_id to options struct
Diffstat (limited to 'cfg-common-opts.h')
-rw-r--r-- | cfg-common-opts.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cfg-common-opts.h b/cfg-common-opts.h index ac5572a860..79971f8c26 100644 --- a/cfg-common-opts.h +++ b/cfg-common-opts.h @@ -115,10 +115,10 @@ {"loadidx", &index_file_load, CONF_TYPE_STRING, 0, 0, 0, NULL}, // select audio/video/subtitle stream - {"aid", &audio_id, CONF_TYPE_INT, CONF_RANGE, 0, 8190, NULL}, - {"vid", &video_id, CONF_TYPE_INT, CONF_RANGE, 0, 8190, NULL}, + INTRANGE("aid", audio_id, 0, 8190, 0), + INTRANGE("vid", video_id, 0, 8190, 0), {"sid", &dvdsub_id, CONF_TYPE_INT, CONF_RANGE, 0, 8190, NULL}, - {"novideo", &video_id, CONF_TYPE_FLAG, 0, -1, -2, NULL}, + FLAG_CONSTANTS("novideo", video_id, -1, -2, 0), { "hr-mp3-seek", &hr_mp3_seek, CONF_TYPE_FLAG, 0, 0, 1, NULL }, { "nohr-mp3-seek", &hr_mp3_seek, CONF_TYPE_FLAG, 0, 1, 0, NULL}, @@ -196,8 +196,8 @@ #endif // disable audio - {"sound", &audio_id, CONF_TYPE_FLAG, 0, -2, -1, NULL}, - {"nosound", &audio_id, CONF_TYPE_FLAG, 0, -1, -2, NULL}, + FLAG_CONSTANTS("sound", audio_id, -2, -1, 0), + FLAG_CONSTANTS("nosound", audio_id, -1, -2, 0), {"af*", &af_cfg.list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL}, {"af-adv", audio_filter_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, |