From 7d424b4ce45534ade52f38df68308498decc0171 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 25 Mar 2017 17:07:40 +0100 Subject: command: add better runtime filter toggling method Basically, see the example in input.rst. This is better than the "old" vf-toggle method, because it doesn't require the user to duplicate the filter string in mpv.conf and input.conf. Some aspects of this changes are untested, so enjoy your alpha testing. --- player/command.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'player/command.c') diff --git a/player/command.c b/player/command.c index 9050812fb3..28d331c97e 100644 --- a/player/command.c +++ b/player/command.c @@ -3449,7 +3449,10 @@ static char *print_obj_osd_list(struct m_obj_settings *list) list[n].attribs[i], list[n].attribs[i + 1]); } - res = talloc_asprintf_append(res, "]\n"); + res = talloc_asprintf_append(res, "]"); + if (!list[n].enabled) + res = talloc_strdup_append(res, " (disabled)"); + res = talloc_strdup_append(res, "\n"); } if (!res) res = talloc_strdup(NULL, "(empty)"); -- cgit v1.2.3