mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
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:
parent
dac9e40be6
commit
a8a60832cd
1 changed files with 3 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue