mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-06-08 03:01:52 -04:00
treewide: avoid unitialized spa_dict::flags
In multiple cases the `flags` member of `spa_dict` is left unitialized, so try to avoid that. For example in `fill_node_info_proplist()` it is accessed in `spa_dict_lookup_item()`. This also modifies `collect_props()` to not depend on a partially initialized `dict` parameter.
This commit is contained in:
parent
bb073d8250
commit
ed951081b1
4 changed files with 15 additions and 13 deletions
|
|
@ -142,7 +142,8 @@ uint32_t collect_transport_codec_info(struct pw_manager_object *card,
|
|||
|
||||
/* ========================================================================== */
|
||||
|
||||
struct spa_dict *collect_props(struct spa_pod *info, struct spa_dict *dict);
|
||||
struct spa_dict *collect_props(struct spa_pod *info, struct spa_dict *dict,
|
||||
struct spa_dict_item *items, size_t capacity);
|
||||
uint32_t find_profile_index(struct pw_manager_object *card, const char *name);
|
||||
uint32_t find_port_index(struct pw_manager_object *card, uint32_t direction, const char *port_name);
|
||||
struct pw_manager_object *find_peer_for_link(struct pw_manager *m,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue