improve debug

This commit is contained in:
Wim Taymans 2019-07-17 15:29:18 +02:00
parent 22b67cc95d
commit 53d3d5cb0c
6 changed files with 28 additions and 18 deletions

View file

@ -64,6 +64,7 @@ struct node_data {
static void resource_destroy(void *data)
{
struct node_data *nd = data;
pw_log_debug("node %p", nd);
spa_hook_remove(&nd->resource_listener);
if (nd->node)
pw_node_destroy(nd->node);
@ -77,6 +78,7 @@ static const struct pw_resource_events resource_events = {
static void node_destroy(void *data)
{
struct node_data *nd = data;
pw_log_debug("node %p", nd);
spa_list_remove(&nd->link);
spa_hook_remove(&nd->node_listener);
nd->node = NULL;