diff options
author | wm4 <wm4@nowhere> | 2013-07-21 21:33:17 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-21 23:27:31 +0200 |
commit | 7eba27c125f6e4813ecc6cff567dc29e17d10fc5 (patch) | |
tree | faff2bdc8aa2fc490634eacbebccdfa19b5c7df9 /core/options.c | |
parent | 9e1331f7afe8f1648424e45ea2c67ca5e95656ad (diff) | |
download | mpv-7eba27c125f6e4813ecc6cff567dc29e17d10fc5.tar.bz2 mpv-7eba27c125f6e4813ecc6cff567dc29e17d10fc5.tar.xz |
options: use new option code for --ao
This requires completely refactoring the AO creation code too.
Diffstat (limited to 'core/options.c')
-rw-r--r-- | core/options.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/options.c b/core/options.c index 3c0bf213a1..eceb1f259f 100644 --- a/core/options.c +++ b/core/options.c @@ -183,6 +183,7 @@ extern double mf_fps; extern char * mf_type; extern const struct m_obj_list vf_obj_list; extern const struct m_obj_list vo_obj_list; +extern const struct m_obj_list ao_obj_list; static const m_option_t mfopts_conf[]={ {"fps", &mf_fps, CONF_TYPE_DOUBLE, 0, 0, 0, NULL}, @@ -520,7 +521,7 @@ const m_option_t mp_opts[] = { //---------------------- libao/libvo options ------------------------ OPT_SETTINGSLIST("vo", vo.video_driver_list, 0, &vo_obj_list), - OPT_STRINGLIST("ao", audio_driver_list, 0), + OPT_SETTINGSLIST("ao", audio_driver_list, 0, &ao_obj_list), OPT_FLAG("fixed-vo", fixed_vo, CONF_GLOBAL), OPT_FLAG("ontop", vo.ontop, 0), OPT_FLAG("border", vo.border, 0), |