diff options
author | wm4 <wm4@nowhere> | 2013-09-20 23:33:38 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-09-21 00:07:42 +0200 |
commit | 897d4b58a175bb4383b9df0ff59d908c63a372b4 (patch) | |
tree | dd3708c2331d0eca4a37297996c64936ed88f24f /mpvcore/m_property.h | |
parent | f988c6300344492c4a8d8db11c47a4ebed4e858b (diff) | |
download | mpv-897d4b58a175bb4383b9df0ff59d908c63a372b4.tar.bz2 mpv-897d4b58a175bb4383b9df0ff59d908c63a372b4.tar.xz |
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.
Diffstat (limited to 'mpvcore/m_property.h')
-rw-r--r-- | mpvcore/m_property.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mpvcore/m_property.h b/mpvcore/m_property.h index b471b94ecd..8398ad321f 100644 --- a/mpvcore/m_property.h +++ b/mpvcore/m_property.h @@ -124,8 +124,8 @@ void m_properties_print_help_list(const struct m_option* list); // STR is recursively expanded using the same rules. // "$$" can be used to escape "$", and "$}" to escape "}". // "$>" disables parsing of "$" for the rest of the string. -char* m_properties_expand_string(const struct m_option* prop_list, char *str, - void *ctx); +char* m_properties_expand_string(const struct m_option* prop_list, + const char *str, void *ctx); // Trivial helpers for implementing properties. int m_property_int_ro(const struct m_option* prop, int action, void* arg, |