From 0fbce9680a180a68d9d69c906b785b69f207d877 Mon Sep 17 00:00:00 2001 From: sonninnos <45124675+sonninnos@users.noreply.github.com> Date: Tue, 24 Jun 2025 18:19:40 +0300 Subject: [PATCH] Fix playlist json flags (#18048) --- playlist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playlist.c b/playlist.c index 09c781cc90..ab1d38511d 100644 --- a/playlist.c +++ b/playlist.c @@ -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; }