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.
This commit is contained in:
Wim Taymans 2019-04-10 16:35:28 +02:00
parent 32f039e2e5
commit 0db5817ed7

View file

@ -315,8 +315,11 @@ static void adapter_port_info(void *data,
struct impl *impl = data; struct impl *impl = data;
struct node *this = &impl->node; struct node *this = &impl->node;
if (direction == impl->direction) if (direction == impl->direction) {
spa_node_emit_port_info(&this->hooks, direction, port_id, info); 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) static void adapter_result(void *data, int seq, int res, const void *result)