pulse-server: fix parsing of format-info

Fixes totem playback
This commit is contained in:
Wim Taymans 2020-11-24 15:11:05 +01:00
parent d0d64de1a0
commit 6ab25c6904
3 changed files with 10 additions and 3 deletions

View file

@ -157,7 +157,7 @@ static inline int spa_json_next(struct spa_json * iter, const char **value)
return -1;
}
}
return iter->depth == 0 ? 0 : -1;
return (iter->depth == 0 ? (iter->state == __BARE ? iter->cur - *value : 0) : -1);
}
static inline int spa_json_enter_container(struct spa_json *iter, struct spa_json *sub, char type)