diff --git a/player/client.c b/player/client.c index 6d95faae48..3462845aed 100644 --- a/player/client.c +++ b/player/client.c @@ -1593,11 +1593,8 @@ static bool update_prop(struct mpv_handle *ctx, struct observe_property *prop) return false; // re-update later when the changed value comes in } - // Move to val - memcpy(&val, &prop->async_value, prop->type->type->size); + m_option_copy(prop->type, &val, &prop->async_value); val_valid = prop->async_value_valid; - prop->async_value = (union m_option_value){0}; - prop->async_value_valid = false; } else { pthread_mutex_unlock(&ctx->lock);