audioadapter: remove checks for format

This is meant to be a filter for the follower format and can thus
contain wildcards.
This commit is contained in:
Wim Taymans 2022-11-09 16:29:04 +01:00
parent 85ffe68ea3
commit 8d6ff6137d

View file

@ -579,10 +579,6 @@ static int impl_node_set_param(void *object, uint32_t id, uint32_t flags,
return -EINVAL; return -EINVAL;
if (spa_format_audio_raw_parse(param, &info.info.raw) < 0) if (spa_format_audio_raw_parse(param, &info.info.raw) < 0)
return -EINVAL; return -EINVAL;
if (info.info.raw.format == 0 ||
info.info.raw.rate == 0 ||
info.info.raw.channels == 0)
return -EINVAL;
this->follower_current_format = info; this->follower_current_format = info;
break; break;