From 1bff5afe05914525e2392acc17e8d97e5c56841e Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 17 May 2018 17:38:13 +0200 Subject: [PATCH] client-stream: reset format on adapter --- src/modules/module-client-node/client-stream.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules/module-client-node/client-stream.c b/src/modules/module-client-node/client-stream.c index 7d13ec60e..f180a4e7c 100644 --- a/src/modules/module-client-node/client-stream.c +++ b/src/modules/module-client-node/client-stream.c @@ -544,6 +544,11 @@ impl_node_port_set_param(struct spa_node *node, if (id == t->param.idFormat && impl->use_converter) { if (param == NULL) { + if ((res = spa_node_port_set_param(impl->adapter, + SPA_DIRECTION_REVERSE(direction), 0, id, + 0, NULL)) < 0) + return res; + impl->n_buffers = 0; } else { if (port_id == 0)