media-session: add module to suspend nodes

This commit is contained in:
Wim Taymans 2020-01-08 13:24:06 +01:00
parent 9ffa9c0b08
commit a3ddc6b744
4 changed files with 258 additions and 0 deletions

View file

@ -250,6 +250,7 @@ handle_node(struct impl *impl, struct sm_object *object)
static void destroy_node(struct impl *impl, struct node *node)
{
spa_list_remove(&node->link);
spa_hook_remove(&node->listener);
free(node->media);
if (node->peer)
node->peer->peer = NULL;