mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
bluez5: fix node initialization to init all nodes
Now that we can have more than 4 nodes, so should init them all.
This commit is contained in:
parent
f341dfed54
commit
70ffbaed74
1 changed files with 3 additions and 4 deletions
|
|
@ -2832,6 +2832,7 @@ impl_init(const struct spa_handle_factory *factory,
|
|||
{
|
||||
struct impl *this;
|
||||
const char *str;
|
||||
unsigned int i;
|
||||
|
||||
spa_return_val_if_fail(factory != NULL, -EINVAL);
|
||||
spa_return_val_if_fail(handle != NULL, -EINVAL);
|
||||
|
|
@ -2878,10 +2879,8 @@ impl_init(const struct spa_handle_factory *factory,
|
|||
|
||||
reset_props(&this->props);
|
||||
|
||||
init_node(this, &this->nodes[0], 0);
|
||||
init_node(this, &this->nodes[1], 1);
|
||||
init_node(this, &this->nodes[2], 2);
|
||||
init_node(this, &this->nodes[3], 3);
|
||||
for (i = 0; i < SPA_N_ELEMENTS(this->nodes); ++i)
|
||||
init_node(this, &this->nodes[i], i);
|
||||
|
||||
this->info = SPA_DEVICE_INFO_INIT();
|
||||
this->info_all = SPA_DEVICE_CHANGE_MASK_PROPS |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue