From 0db5817ed7c178ca524cce649f6f54790f734115 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 10 Apr 2019 16:35:28 +0200 Subject: [PATCH] client-stream: Don't allow DYNAMIC_DATA We don't want to use dynamic data for the remote nodes, the buffers need to keep pointing to the memfd memory. --- src/modules/module-client-node/client-stream.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/modules/module-client-node/client-stream.c b/src/modules/module-client-node/client-stream.c index 8baeeb165..622dc204c 100644 --- a/src/modules/module-client-node/client-stream.c +++ b/src/modules/module-client-node/client-stream.c @@ -315,8 +315,11 @@ static void adapter_port_info(void *data, struct impl *impl = data; struct node *this = &impl->node; - if (direction == impl->direction) - spa_node_emit_port_info(&this->hooks, direction, port_id, info); + if (direction == impl->direction) { + struct spa_port_info i = *info; + SPA_FLAG_UNSET(i.flags, SPA_PORT_FLAG_DYNAMIC_DATA); + spa_node_emit_port_info(&this->hooks, direction, port_id, &i); + } } static void adapter_result(void *data, int seq, int res, const void *result)