mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
spa: 0 means there is nothing left from from spa_json_next()
This commit is contained in:
parent
6e4c138238
commit
57a9e82f79
1 changed files with 1 additions and 1 deletions
|
|
@ -165,7 +165,7 @@ static inline int spa_json_next(struct spa_json * iter, const char **value)
|
||||||
static inline int spa_json_enter_container(struct spa_json *iter, struct spa_json *sub, char type)
|
static inline int spa_json_enter_container(struct spa_json *iter, struct spa_json *sub, char type)
|
||||||
{
|
{
|
||||||
const char *value;
|
const char *value;
|
||||||
if (spa_json_next(iter, &value) < 0 || *value != type)
|
if (spa_json_next(iter, &value) <= 0 || *value != type)
|
||||||
return -1;
|
return -1;
|
||||||
spa_json_enter(iter, sub);
|
spa_json_enter(iter, sub);
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue