summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-10-24 16:48:32 +0200
committerwm4 <wm4@nowhere>2019-10-24 16:48:32 +0200
commit922be711018cab55551c26fc757b7566c11602cb (patch)
treee9a2ea9ef93a7f78c91eb8b2f41e863555161c09
parent436bf04d5f59ace8c001f7f22ae3e177f6b90a2a (diff)
downloadmpv-922be711018cab55551c26fc757b7566c11602cb.tar.bz2
mpv-922be711018cab55551c26fc757b7566c11602cb.tar.xz
client API: move a function
May reduce the diff of the next commit.
-rw-r--r--player/client.c14
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)
{