mirror of
https://github.com/mpv-player/mpv
synced 2024-12-22 14:52:43 +00:00
client API: always reset new_property_events fields
This was not reset in the num_properties==0 case. This didn't really matter, but for debugging it's slightly nicer to see new_property_events reset once the client thread is done with it.
This commit is contained in:
parent
7f1bd0f30b
commit
a56d5bdb53
@ -1735,7 +1735,8 @@ static bool gen_property_change_event(struct mpv_handle *ctx)
|
||||
|
||||
while (1) {
|
||||
if (ctx->cur_property_index >= ctx->num_properties) {
|
||||
if (!ctx->new_property_events || !ctx->num_properties)
|
||||
ctx->new_property_events &= ctx->num_properties > 0;
|
||||
if (!ctx->new_property_events)
|
||||
break;
|
||||
ctx->new_property_events = false;
|
||||
ctx->cur_property_index = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user