mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
implement NEAREST flag
when the NEAREST flag is set and the param could not be completely set, set_param should return 1 to indicate this.
This commit is contained in:
parent
955e1a6a18
commit
1ca7713057
3 changed files with 21 additions and 17 deletions
|
|
@ -639,7 +639,7 @@ static int port_set_format(void *object,
|
|||
port->have_format = false;
|
||||
}
|
||||
|
||||
if (spa_v4l2_set_format(this, &info, flags & SPA_NODE_PARAM_FLAG_TEST_ONLY) < 0)
|
||||
if (spa_v4l2_set_format(this, &info, flags) < 0)
|
||||
return -EINVAL;
|
||||
|
||||
if (!(flags & SPA_NODE_PARAM_FLAG_TEST_ONLY)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue