mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
gst: only remove port once
The port has node_data set/cleared when it is added/removed to/from the node. Make sure we only remove the port once to avoid a valgrind error.
This commit is contained in:
parent
7a9dfc188a
commit
4437f6e000
1 changed files with 4 additions and 1 deletions
|
|
@ -486,7 +486,10 @@ destroy_port (void *data)
|
||||||
{
|
{
|
||||||
struct port_data *pd = data;
|
struct port_data *pd = data;
|
||||||
pw_log_debug("destroy %p", pd);
|
pw_log_debug("destroy %p", pd);
|
||||||
|
if (pd->node_data != NULL) {
|
||||||
spa_list_remove(&pd->link);
|
spa_list_remove(&pd->link);
|
||||||
|
pd->node_data = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct pw_proxy_events proxy_port_events = {
|
static const struct pw_proxy_events proxy_port_events = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue