Fix playlist json flags (#18048)

This commit is contained in:
sonninnos 2025-06-24 18:19:40 +03:00 committed by GitHub
parent 5e578f9fc4
commit 0fbce9680a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -2230,11 +2230,11 @@ static bool JSONEndArrayHandler(void *context)
if ( (pCtx->flags & JSON_CTX_FLG_IN_ITEMS)
&& (pCtx->array_depth == 0)
&& (pCtx->object_depth <= 1))
pCtx->flags &= (JSON_CTX_FLG_IN_ITEMS);
pCtx->flags &= ~(JSON_CTX_FLG_IN_ITEMS);
else if ((pCtx->flags & JSON_CTX_FLG_IN_SUBSYSTEM_CONTENT)
&& (pCtx->array_depth <= 1)
&& (pCtx->object_depth <= 2))
pCtx->flags &= (JSON_CTX_FLG_IN_SUBSYSTEM_CONTENT);
pCtx->flags &= ~(JSON_CTX_FLG_IN_SUBSYSTEM_CONTENT);
return true;
}