mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
spa: libcamera: source: handle try-only format unset
Do nothing if `format == nullptr` and `SPA_NODE_PARAM_FLAG_TEST_ONLY` is present.
This commit is contained in:
parent
a8a60832cd
commit
31176120f5
1 changed files with 1 additions and 1 deletions
|
|
@ -1850,7 +1850,7 @@ int port_set_format(struct impl *impl, struct port *port,
|
|||
const bool try_only = SPA_FLAG_IS_SET(flags, SPA_NODE_PARAM_FLAG_TEST_ONLY);
|
||||
|
||||
if (format == nullptr) {
|
||||
if (!port->current_format)
|
||||
if (try_only || !port->current_format)
|
||||
return 0;
|
||||
|
||||
spa_libcamera_stream_off(impl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue