From 897d4b58a175bb4383b9df0ff59d908c63a372b4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 20 Sep 2013 23:33:38 +0200 Subject: command: when changing a property, allow showing an extra OSD message This is for properties that normally show a bar, and thus do not show an OSD message (as per classic mplayer behavior). Setting an extra_msg allows showing an OSD message anyway, except if OSD messages are explicitly suppressed. This refactors the whole show_property_osd() function a bit, and replaces the weird sep field with a more general method. --- mpvcore/m_property.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mpvcore/m_property.c') diff --git a/mpvcore/m_property.c b/mpvcore/m_property.c index 6e25bf4e43..4ae33c9d1e 100644 --- a/mpvcore/m_property.c +++ b/mpvcore/m_property.c @@ -245,8 +245,8 @@ static int expand_property(const m_option_t *prop_list, char **ret, int *ret_len return skip; } -char *m_properties_expand_string(const m_option_t *prop_list, char *str0, - void *ctx) +char *m_properties_expand_string(const m_option_t *prop_list, + const char *str0, void *ctx) { char *ret = NULL; int ret_len = 0; -- cgit v1.2.3