mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
device-port: Create the profiles hashmap at initialization.
I doesn't make sense to require all callers of pa_device_port_new() to create the hashmap themselves. There are and there will be no cases where a port without any profiles would be desired.
This commit is contained in:
parent
866b2c9a57
commit
de95e1c0c8
2 changed files with 1 additions and 2 deletions
|
|
@ -4509,7 +4509,6 @@ static pa_device_port* device_port_alsa_init(pa_hashmap *ports,
|
|||
p = pa_device_port_new(core, name, description, sizeof(pa_alsa_port_data));
|
||||
pa_assert(p);
|
||||
pa_hashmap_put(ports, p->name, p);
|
||||
p->profiles = pa_hashmap_new(pa_idxset_string_hash_func, pa_idxset_string_compare_func);
|
||||
|
||||
data = PA_DEVICE_PORT_DATA(p);
|
||||
data->path = path;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue