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.
This commit is contained in:
Barnabás Pőcze 2025-08-07 18:14:07 +02:00
parent dac9e40be6
commit a8a60832cd

View file

@ -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) {