mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05: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
|
|
@ -428,14 +428,8 @@ static int impl_node_send_command(void *object, const struct spa_command *comman
|
||||||
}
|
}
|
||||||
case SPA_NODE_COMMAND_Suspend:
|
case SPA_NODE_COMMAND_Suspend:
|
||||||
case SPA_NODE_COMMAND_Pause:
|
case SPA_NODE_COMMAND_Pause:
|
||||||
if (!port->have_format)
|
|
||||||
return -EIO;
|
|
||||||
if (port->n_buffers == 0)
|
|
||||||
return -EIO;
|
|
||||||
|
|
||||||
if (!this->started)
|
if (!this->started)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
this->started = false;
|
this->started = false;
|
||||||
set_timer(this, false);
|
set_timer(this, false);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -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_Suspend:
|
||||||
case SPA_NODE_COMMAND_Pause:
|
case SPA_NODE_COMMAND_Pause:
|
||||||
if (!port->have_format)
|
|
||||||
return -EIO;
|
|
||||||
if (port->n_buffers == 0)
|
|
||||||
return -EIO;
|
|
||||||
|
|
||||||
if (!this->started)
|
if (!this->started)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
this->started = false;
|
this->started = false;
|
||||||
set_timer(this, false);
|
set_timer(this, false);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue