diff options
author | wm4 <wm4@nowhere> | 2016-09-01 20:00:43 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-01 20:00:43 +0200 |
commit | d32bee5f019f2c51839df16b7c7955dc33651cbe (patch) | |
tree | 96424f3477a67ca6b5f6220295bf4c906ac6106a /player/client.c | |
parent | 17dbb39dec1fcd3280f86e480a7191b6f78cbbcc (diff) | |
download | mpv-d32bee5f019f2c51839df16b7c7955dc33651cbe.tar.bz2 mpv-d32bee5f019f2c51839df16b7c7955dc33651cbe.tar.xz |
command: add options to property list
Now options are accessible through the property list as well, which
unifies them to a degree.
Not all options support runtime changes (meaning affected components
need to be restarted for the options to take effects). Remove from the
manpage those properties which are cleanly mapped to options anyway.
From the user-perspective they're just options available through the
property interface.
Diffstat (limited to 'player/client.c')
-rw-r--r-- | player/client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/player/client.c b/player/client.c index b34247d730..df3aa01739 100644 --- a/player/client.c +++ b/player/client.c @@ -1319,7 +1319,7 @@ int mpv_observe_property(mpv_handle *ctx, uint64_t userdata, *prop = (struct observe_property){ .client = ctx, .name = talloc_strdup(prop, name), - .id = mp_get_property_id(name), + .id = mp_get_property_id(ctx->mpctx, name), .event_mask = mp_get_property_event_mask(name), .reply_id = userdata, .format = format, @@ -1377,7 +1377,7 @@ static void mark_property_changed(struct mpv_handle *client, int index) void mp_client_property_change(struct MPContext *mpctx, const char *name) { struct mp_client_api *clients = mpctx->clients; - int id = mp_get_property_id(name); + int id = mp_get_property_id(mpctx, name); pthread_mutex_lock(&clients->lock); |