From ffe894ec0a73ab6a16ce1ca62800bf1612542107 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 6 Feb 2015 16:48:52 +0100 Subject: options: change --msg-level option Make it accept "," as separator, instead of only ":". Do this by using the key-value-list parser. Before this, the option was stored as a string, with the option parser verifying that the option value as correct. Now it's stored pre-parsed, although the log levels still require separate verification and parsing-on-use to some degree (which is why the msg-level option type doesn't go away). Because the internal type changes, the client API "native" type also changes. This could be prevented with some more effort, but I don't think it's worth it - if MPV_FORMAT_STRING is used, it still works the same, just with a different separator on read accesses. --- options/options.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'options/options.h') diff --git a/options/options.h b/options/options.h index 7d110faf2a..6c74fd3ed7 100644 --- a/options/options.h +++ b/options/options.h @@ -54,9 +54,9 @@ struct mp_cache_opts { typedef struct MPOpts { int use_terminal; - char *msglevels; char *dump_stats; int verbose; + char **msg_levels; int msg_color; int msg_module; int msg_time; -- cgit v1.2.3