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
|
@ -2832,6 +2832,7 @@ impl_init(const struct spa_handle_factory *factory,
|
||||||
{
|
{
|
||||||
struct impl *this;
|
struct impl *this;
|
||||||
const char *str;
|
const char *str;
|
||||||
|
unsigned int i;
|
||||||
|
|
||||||
spa_return_val_if_fail(factory != NULL, -EINVAL);
|
spa_return_val_if_fail(factory != NULL, -EINVAL);
|
||||||
spa_return_val_if_fail(handle != 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);
|
reset_props(&this->props);
|
||||||
|
|
||||||
init_node(this, &this->nodes[0], 0);
|
for (i = 0; i < SPA_N_ELEMENTS(this->nodes); ++i)
|
||||||
init_node(this, &this->nodes[1], 1);
|
init_node(this, &this->nodes[i], i);
|
||||||
init_node(this, &this->nodes[2], 2);
|
|
||||||
init_node(this, &this->nodes[3], 3);
|
|
||||||
|
|
||||||
this->info = SPA_DEVICE_INFO_INIT();
|
this->info = SPA_DEVICE_INFO_INIT();
|
||||||
this->info_all = SPA_DEVICE_CHANGE_MASK_PROPS |
|
this->info_all = SPA_DEVICE_CHANGE_MASK_PROPS |
|
||||||
|
|
Loading…
Reference in New Issue