From d1de1e090f91a254f066505ee5811feda4d93dde Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 31 Jul 2013 20:45:06 +0200 Subject: options: handle presets directly in m_config This means that "mpv -vo opengl-hq:help" will actually show the correct defaults, instead those of plain vo_opengl. --- video/out/vo_opengl.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'video') diff --git a/video/out/vo_opengl.c b/video/out/vo_opengl.c index 2a2dbf9e21..ee9c2a06ee 100644 --- a/video/out/vo_opengl.c +++ b/video/out/vo_opengl.c @@ -199,11 +199,9 @@ static bool reparse_cmdline(struct gl_priv *p, char *args) opts = p->renderer_opts; } else { cfg = m_config_new(NULL, sizeof(*opts), gl_video_conf.defaults, - gl_video_conf.opts); + gl_video_conf.opts, + p->vo->driver->init_option_string); opts = cfg->optstruct; - const char *init = p->vo->driver->init_option_string; - if (init) - m_config_parse_suboptions(cfg, "opengl", (char *)init); r = m_config_parse_suboptions(cfg, "opengl", args); } -- cgit v1.2.3