summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-05-24 16:16:06 +0200
committerwm4 <wm4@nowhere>2014-05-24 16:17:52 +0200
commit01c3847b80d32387dfc5aae70f43d914616e3dc1 (patch)
treeae0f2c43e61db5ad48bcdebe4fdf9d3f6da69644 /player
parent6125ba613f019a011dcd0873f1b448e859c15634 (diff)
downloadmpv-01c3847b80d32387dfc5aae70f43d914616e3dc1.tar.bz2
mpv-01c3847b80d32387dfc5aae70f43d914616e3dc1.tar.xz
client API: fix mpv_observe_property with MP_FORMAT_NONE
It returned only 1 change event (after registration), and then went silent. This was accidentally broken some time ago.
Diffstat (limited to 'player')
-rw-r--r--player/client.c5
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);