mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-19 07:00:10 -05:00
stream: improve states
This commit is contained in:
parent
db16de85bb
commit
50a7240a52
3 changed files with 58 additions and 35 deletions
|
|
@ -203,6 +203,9 @@ static SpaResult
|
|||
pinos_port_pause (PinosPort *port)
|
||||
{
|
||||
SpaCommand cmd = SPA_COMMAND_INIT (port->node->core->type.command_node.Pause);
|
||||
if (port->state <= SPA_PORT_STATE_PAUSED)
|
||||
return SPA_RESULT_OK;
|
||||
|
||||
port->state = SPA_PORT_STATE_PAUSED;
|
||||
return spa_node_port_send_command (port->node->node,
|
||||
port->direction,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue