audioconvert: handle port remove

The info is NULL when the port is removed, don't crash on that.
This commit is contained in:
Wim Taymans 2024-02-28 11:28:22 +01:00
parent 0912201664
commit d24a80c9d5

View file

@ -1065,6 +1065,9 @@ static void follower_convert_port_info(void *data,
uint32_t i;
int res;
if (info == NULL)
return;
spa_log_debug(this->log, "%p: convert port info %s %p %08"PRIx64, this,
this->direction == SPA_DIRECTION_INPUT ?
"Input" : "Output", info, info->change_mask);
@ -1242,6 +1245,9 @@ static void follower_port_info(void *data,
uint32_t i;
int res;
if (info == NULL)
return;
if (this->follower_removing) {
spa_node_emit_port_info(&this->hooks, direction, port_id, NULL);
return;