From b9b57d32d56662f4f85c34b7a56e38e804ec0ad5 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Fri, 25 Feb 2022 20:31:25 +0200 Subject: [PATCH] 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. --- spa/plugins/audioconvert/channelmix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/spa/plugins/audioconvert/channelmix.c b/spa/plugins/audioconvert/channelmix.c index 7da61c8d9..848871752 100644 --- a/spa/plugins/audioconvert/channelmix.c +++ b/spa/plugins/audioconvert/channelmix.c @@ -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;