audioconvert: refuse invalid channels and rate

This commit is contained in:
Wim Taymans 2019-09-03 13:49:38 +02:00
parent 6341469456
commit 73628c91de
4 changed files with 7 additions and 1 deletions

View file

@ -914,6 +914,8 @@ static int configure_adapt(struct impl *this)
spa_pod_builder_init(&b, buffer, sizeof(buffer));
spa_log_debug(this->log, "%p: configure convert %p", this, this->target);
param = spa_pod_builder_add_object(&b,
SPA_TYPE_OBJECT_ParamPortConfig, SPA_PARAM_PortConfig,
SPA_PARAM_PORT_CONFIG_direction, SPA_POD_Id(this->direction),