From c1afd751428741a2b0077cc82a5fb68c6b672009 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 21 Jul 2013 21:17:48 +0200 Subject: options: use new code for parsing --vo Nothing should change from user perspective. mpv --vo=opengl:help now works. Remove the vo_opengl inline help text. The new code can list option names for you, but that's it. Refer to the manpage if you have trouble. --- 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 854f1bd0cb..3c0bf213a1 100644 --- a/core/options.c +++ b/core/options.c @@ -182,6 +182,7 @@ extern char *dvd_device, *cdrom_device; 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; static const m_option_t mfopts_conf[]={ {"fps", &mf_fps, CONF_TYPE_DOUBLE, 0, 0, 0, NULL}, @@ -518,7 +519,7 @@ const m_option_t mp_opts[] = { OPT_SUBSTRUCT("sub-text", sub_text_style, osd_style_conf, 0), //---------------------- libao/libvo options ------------------------ - OPT_STRINGLIST("vo", vo.video_driver_list, 0), + OPT_SETTINGSLIST("vo", vo.video_driver_list, 0, &vo_obj_list), OPT_STRINGLIST("ao", audio_driver_list, 0), OPT_FLAG("fixed-vo", fixed_vo, CONF_GLOBAL), OPT_FLAG("ontop", vo.ontop, 0), -- cgit v1.2.3