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.
(cherry picked from commit a8a60832cd)
This commit is contained in:
parent
0c418d05c3
commit
e7eef5f7ec
1 changed files with 3 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue