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:
wm4 2020-03-07 12:39:03 +01:00
parent 7f1bd0f30b
commit a56d5bdb53
1 changed files with 2 additions and 1 deletions

View File

@ -1735,7 +1735,8 @@ static bool gen_property_change_event(struct mpv_handle *ctx)
while (1) { while (1) {
if (ctx->cur_property_index >= ctx->num_properties) { 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; break;
ctx->new_property_events = false; ctx->new_property_events = false;
ctx->cur_property_index = 0; ctx->cur_property_index = 0;