mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
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:
parent
913cf29dcd
commit
8096984b7e
2 changed files with 0 additions and 12 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue