protocol: init spa_dict properly

Or else the flags might be wrong.
This commit is contained in:
Wim Taymans 2019-11-04 17:25:20 +01:00
parent 085f1822b9
commit 6397db9d68
4 changed files with 17 additions and 16 deletions

View file

@ -38,6 +38,7 @@ extern "C" {
static inline int spa_debug_dict(int indent, const struct spa_dict *dict)
{
const struct spa_dict_item *item;
spa_debug("%*s flags:%08x n_items:%d", indent, "", dict->flags, dict->n_items);
spa_dict_for_each(item, dict) {
spa_debug("%*s%s = \"%s\"", indent, "", item->key, item->value);
}