summaryrefslogtreecommitdiffstats
path: root/video/out/vo.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/vo.c')
-rw-r--r--video/out/vo.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/video/out/vo.c b/video/out/vo.c
index 90497c48fd..fcc50713c9 100644
--- a/video/out/vo.c
+++ b/video/out/vo.c
@@ -119,9 +119,16 @@ static int vo_preinit(struct vo *vo, char *arg)
char n[50];
int l = snprintf(n, sizeof(n), "vo/%s", vo->driver->info->short_name);
assert(l < sizeof(n));
+ if (vo->driver->init_option_string) {
+ m_config_parse_suboptions(cfg, n,
+ (char *)vo->driver->init_option_string);
+ }
int r = m_config_parse_suboptions(cfg, n, arg);
- if (r < 0)
+ if (r < 0) {
+ if (vo->driver->help_text)
+ mp_msg(MSGT_VO, MSGL_FATAL, "%s\n", vo->driver->help_text);
return r;
+ }
}
return vo->driver->preinit(vo, arg);
}