mirror of
https://github.com/mpv-player/mpv
synced 2025-01-12 01:49:33 +00:00
command: add const to mp_notify_property
This commit is contained in:
parent
498c997474
commit
69ad734af8
@ -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});
|
||||
}
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user