mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pulse-server: fix parsing of format-info
Fixes totem playback
This commit is contained in:
parent
d0d64de1a0
commit
6ab25c6904
3 changed files with 10 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue