command: add const to mp_notify_property

This commit is contained in:
wm4 2014-06-01 03:41:36 +02:00
parent 498c997474
commit 69ad734af8
2 changed files with 2 additions and 2 deletions

View File

@ -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});
}

View File

@ -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 */