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

@ -242,7 +242,7 @@ static int device_demarshal_info(void *object,
struct spa_pod_parser prs;
struct spa_pod *ipod;
struct spa_device_info info = SPA_DEVICE_INFO_INIT(), *infop;
struct spa_dict props;
struct spa_dict props = SPA_DICT_INIT(NULL, 0);
uint32_t i;
spa_pod_parser_init(&prs, msg->data, msg->size);
@ -449,7 +449,7 @@ static int device_demarshal_object_info(void *object,
struct spa_pod_parser prs;
struct spa_device_object_info info = SPA_DEVICE_OBJECT_INFO_INIT(), *infop;
struct spa_pod *ipod;
struct spa_dict props;
struct spa_dict props = SPA_DICT_INIT(NULL, 0);
uint32_t id;
spa_pod_parser_init(&prs, msg->data, msg->size);