From 7eba27c125f6e4813ecc6cff567dc29e17d10fc5 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 21 Jul 2013 21:33:17 +0200 Subject: options: use new option code for --ao This requires completely refactoring the AO creation code too. --- core/options.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/options.c') 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), -- cgit v1.2.3