audioconvert: handle NULL param

This commit is contained in:
Wim Taymans 2021-09-01 13:09:35 +02:00
parent 6c3c88f9d3
commit 93e9efc1e4
4 changed files with 11 additions and 0 deletions

View file

@ -516,6 +516,9 @@ static int apply_props(struct impl *this, const struct spa_pod *param)
bool have_channel_volume = false;
bool have_soft_volume = false;
if (param == NULL)
return 0;
SPA_POD_OBJECT_FOREACH(obj, prop) {
switch (prop->key) {
case SPA_PROP_volume: