diff options
Diffstat (limited to 'player/client.c')
-rw-r--r-- | player/client.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/player/client.c b/player/client.c index 86cdf80677..a1ce20fd74 100644 --- a/player/client.c +++ b/player/client.c @@ -1454,6 +1454,13 @@ int mpv_observe_property(mpv_handle *ctx, uint64_t userdata, return 0; } +static void mark_property_changed(struct mpv_handle *client, int index) +{ + struct observe_property *prop = client->properties[index]; + prop->changed = true; + client->lowest_changed = MPMIN(client->lowest_changed, index); +} + int mpv_unobserve_property(mpv_handle *ctx, uint64_t userdata) { pthread_mutex_lock(&ctx->lock); @@ -1482,13 +1489,6 @@ int mpv_unobserve_property(mpv_handle *ctx, uint64_t userdata) return count; } -static void mark_property_changed(struct mpv_handle *client, int index) -{ - struct observe_property *prop = client->properties[index]; - prop->changed = true; - client->lowest_changed = MPMIN(client->lowest_changed, index); -} - // Broadcast that a property has changed. void mp_client_property_change(struct MPContext *mpctx, const char *name) { |