From 69ad734af805ed7b076dc2235c4551e2738ee8d4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 1 Jun 2014 03:41:36 +0200 Subject: command: add const to mp_notify_property --- player/command.c | 2 +- player/command.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'player') diff --git a/player/command.c b/player/command.c index bf18d2fb9e..b3cfab1d41 100644 --- a/player/command.c +++ b/player/command.c @@ -3738,7 +3738,7 @@ void mp_notify(struct MPContext *mpctx, int event, void *arg) mp_client_property_change(mpctx, mp_event_property_change[event]); } -void mp_notify_property(struct MPContext *mpctx, char *property) +void mp_notify_property(struct MPContext *mpctx, const char *property) { mp_client_property_change(mpctx, (const char*[]){property, NULL}); } diff --git a/player/command.h b/player/command.h index 795a759906..258eada148 100644 --- a/player/command.h +++ b/player/command.h @@ -37,6 +37,6 @@ const struct m_option *mp_get_property_list(void); int mp_find_property_index(const char *property); void mp_notify(struct MPContext *mpctx, int event, void *arg); -void mp_notify_property(struct MPContext *mpctx, char *property); +void mp_notify_property(struct MPContext *mpctx, const char *property); #endif /* MPLAYER_COMMAND_H */ -- cgit v1.2.3