audioconvert: send the command to the children

Send the command on the converter to all children as well.
Reset the resampler when we are paused so that we don't end up
with old data.

Fixes #288
This commit is contained in:
Wim Taymans 2020-09-14 16:39:42 +02:00
parent 310ed89aad
commit e59c4675a7
7 changed files with 26 additions and 3 deletions

View file

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