testsrc: remove checks in suspend and pause

We don't need to have a format or buffers to be able to pause.
This commit is contained in:
Wim Taymans 2020-03-03 13:17:28 +01:00
parent 913cf29dcd
commit 8096984b7e
2 changed files with 0 additions and 12 deletions

View file

@ -380,14 +380,8 @@ static int impl_node_send_command(void *object, const struct spa_command *comman
}
case SPA_NODE_COMMAND_Suspend:
case SPA_NODE_COMMAND_Pause:
if (!port->have_format)
return -EIO;
if (port->n_buffers == 0)
return -EIO;
if (!this->started)
return 0;
this->started = false;
set_timer(this, false);
break;