diff options
-rw-r--r-- | player/client.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/player/client.c b/player/client.c index 85a9b0fa9a..0a71e5020d 100644 --- a/player/client.c +++ b/player/client.c @@ -1194,9 +1194,10 @@ static bool gen_property_change_event(struct mpv_handle *ctx) if ((prop->changed || prop->updating) && n < ctx->lowest_changed) ctx->lowest_changed = n; if (prop->changed) { + bool get_value = prop->need_new_value; + prop->need_new_value = false; prop->changed = false; - if (prop->format && prop->need_new_value) { - prop->need_new_value = false; + if (prop->format && get_value) { ctx->properties_updating++; prop->updating = true; mp_dispatch_enqueue(ctx->mpctx->dispatch, update_prop, prop); |