From 4052b22c34a6fa0860781addf5bd2c21e6067bec Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Mon, 14 Aug 2023 08:28:59 -0700 Subject: modules/rkt: gc module contexts after scener edits This triggers immediate cleanup of the replaced context. It's being done after the new context is fully installed as the replacement, with an eye towards enabling a baton style handoff of the existing context's owned pipes to the replacement, for taps they have in common. That's not being done yet, but it'd be impossible if the gc occurred before creating the replacement, since the existing context's pipes would already be untapped (and removed). --- src/modules/rkt/rkt_scener.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/modules/rkt/rkt_scener.c b/src/modules/rkt/rkt_scener.c index d48caea..446b998 100644 --- a/src/modules/rkt/rkt_scener.c +++ b/src/modules/rkt/rkt_scener.c @@ -1272,6 +1272,7 @@ int rkt_scener_update(rkt_context_t *ctxt) assert(scener->scene < ctxt->n_scenes); ctxt->scenes[scener->scene].module_ctxt = til_module_context_free(ctxt->scenes[scener->scene].module_ctxt); ctxt->scenes[scener->scene].module_ctxt = module_ctxt; + til_stream_gc_module_contexts(ctxt->til_module_context.stream); } } -- cgit v1.2.3