From a8a60832cd9baa99a974a3572f35816a606ba494 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Thu, 7 Aug 2025 18:14:07 +0200 Subject: [PATCH] spa: libcamera: source: do not emit param change if try-only If `SPA_NODE_PARAM_FLAG_TEST_ONLY`, then the format does not change on the node, it is only tested. So do not emit the param change events. --- spa/plugins/libcamera/libcamera-source.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spa/plugins/libcamera/libcamera-source.cpp b/spa/plugins/libcamera/libcamera-source.cpp index 9a912a005..791d0c417 100644 --- a/spa/plugins/libcamera/libcamera-source.cpp +++ b/spa/plugins/libcamera/libcamera-source.cpp @@ -1908,6 +1908,9 @@ int port_set_format(struct impl *impl, struct port *port, port->current_format = info; } + if (try_only) + return 0; + impl->info.change_mask |= SPA_NODE_CHANGE_MASK_PARAMS; port->info.change_mask |= SPA_PORT_CHANGE_MASK_PARAMS; if (port->current_format) {