mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
audioconvert: handle port remove
The info is NULL when the port is removed, don't crash on that.
This commit is contained in:
parent
71ae3df6f2
commit
8942b74c18
1 changed files with 6 additions and 0 deletions
|
|
@ -1040,6 +1040,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);
|
||||
|
|
@ -1217,6 +1220,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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue