From 922be711018cab55551c26fc757b7566c11602cb Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 24 Oct 2019 16:48:32 +0200 Subject: client API: move a function May reduce the diff of the next commit. --- player/client.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'player/client.c') 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) { -- cgit v1.2.3