summaryrefslogtreecommitdiffstats
path: root/mpvcore/command.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-09-20 23:33:38 +0200
committerwm4 <wm4@nowhere>2013-09-21 00:07:42 +0200
commit897d4b58a175bb4383b9df0ff59d908c63a372b4 (patch)
treedd3708c2331d0eca4a37297996c64936ed88f24f /mpvcore/command.h
parentf988c6300344492c4a8d8db11c47a4ebed4e858b (diff)
downloadmpv-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/command.h')
-rw-r--r--mpvcore/command.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpvcore/command.h b/mpvcore/command.h
index dbe1f638e2..5ac8c3a8f0 100644
--- a/mpvcore/command.h
+++ b/mpvcore/command.h
@@ -25,7 +25,7 @@ struct mp_cmd;
void mp_get_osd_mouse_pos(struct MPContext *mpctx, float *x, float *y);
void run_command(struct MPContext *mpctx, struct mp_cmd *cmd);
-char *mp_property_expand_string(struct MPContext *mpctx, char *str);
+char *mp_property_expand_string(struct MPContext *mpctx, const char *str);
void property_print_help(void);
int mp_property_do(const char* name, int action, void* val,
struct MPContext *mpctx);