From bcc147cf72f72d6dfdc6855830db2bb2b8c5b41a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 25 Mar 2021 17:43:59 +0100 Subject: [PATCH] context: keep some room for our own support We need some extra items in the array to store our own support objects, so pass a smaller one to the core support. --- src/pipewire/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipewire/context.c b/src/pipewire/context.c index 24effb43e..b23e0f9b5 100644 --- a/src/pipewire/context.c +++ b/src/pipewire/context.c @@ -281,7 +281,7 @@ struct pw_context *pw_context_new(struct pw_loop *main_loop, this->data_system = this->data_loop->system; this->main_loop = main_loop; - n_support = pw_get_support(this->support, SPA_N_ELEMENTS(this->support)); + n_support = pw_get_support(this->support, SPA_N_ELEMENTS(this->support) - 6); this->support[n_support++] = SPA_SUPPORT_INIT(SPA_TYPE_INTERFACE_System, this->main_loop->system); this->support[n_support++] = SPA_SUPPORT_INIT(SPA_TYPE_INTERFACE_Loop, this->main_loop->loop); this->support[n_support++] = SPA_SUPPORT_INIT(SPA_TYPE_INTERFACE_LoopUtils, this->main_loop->utils);