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

@ -723,6 +723,8 @@ impl_node_port_set_param(void *object,
case SPA_PARAM_Latency:
{
struct spa_latency_info info;
if (param == NULL)
return 0;
if ((res = spa_latency_parse(param, &info)) < 0)
return res;
if (direction == info.direction)