channelmix: set mix log earlier

Set mix.log already in impl_init, since it's not going to change.
Should fix null pointer access under some cases.
This commit is contained in:
Pauli Virtanen 2022-02-25 20:31:25 +02:00
parent 1cf869cea8
commit b9b57d32d5

View file

@ -1576,6 +1576,7 @@ impl_init(const struct spa_handle_factory *factory,
props_reset(&this->props);
this->mix.options = CHANNELMIX_OPTION_NORMALIZE;
this->mix.log = this->log;
for (i = 0; info && i < info->n_items; i++) {
const char *k = info->items[i].key;