node: send Suspend to the node

Send suspend to the node when suspending. This is usually the same
as puse for all nodes.
Implement negotiation when we Start audioadapter. This makes it
easier that to track the ports that are negotiated for now.
Use Suspend to clear the audioadapter negotiation.
This commit is contained in:
Wim Taymans 2019-10-21 17:24:51 +02:00
parent 34a1a988ba
commit 3aa19dd38a
6 changed files with 237 additions and 209 deletions

View file

@ -784,6 +784,8 @@ static int impl_node_send_command(void *object, const struct spa_command *comman
this->started = true;
break;
case SPA_NODE_COMMAND_Suspend:
/* fallthrough */
case SPA_NODE_COMMAND_Pause:
this->started = false;
break;