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:
Wim Taymans 2020-05-08 17:52:30 +02:00
parent 955e1a6a18
commit 1ca7713057
3 changed files with 21 additions and 17 deletions

View file

@ -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)) {