mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
a2dp-sink/source: don't crash if transport went away
This commit is contained in:
parent
24c68b0067
commit
c39ba8570e
2 changed files with 4 additions and 0 deletions
|
|
@ -923,6 +923,8 @@ impl_node_port_enum_params(void *object, int seq,
|
|||
case SPA_PARAM_EnumFormat:
|
||||
if (this->codec == NULL)
|
||||
return -EIO;
|
||||
if (this->transport == NULL)
|
||||
return -EIO;
|
||||
|
||||
if ((res = this->codec->enum_config(this->codec,
|
||||
this->transport->configuration,
|
||||
|
|
|
|||
|
|
@ -757,6 +757,8 @@ impl_node_port_enum_params(void *object, int seq,
|
|||
return 0;
|
||||
if (this->codec == NULL)
|
||||
return -EIO;
|
||||
if (this->transport == NULL)
|
||||
return -EIO;
|
||||
|
||||
if ((res = this->codec->enum_config(this->codec,
|
||||
this->transport->configuration,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue