mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -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
0912201664
commit
d24a80c9d5
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue