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.

(cherry picked from commit a8a60832cd)
This commit is contained in:
Barnabás Pőcze 2025-08-07 18:14:07 +02:00 committed by Robert Mader
parent 0c418d05c3
commit e7eef5f7ec

View file

@ -1895,6 +1895,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) {