mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
testsrc: implement suspend
This commit is contained in:
parent
04b1881211
commit
90968bbb40
2 changed files with 2 additions and 0 deletions
|
|
@ -426,6 +426,7 @@ static int impl_node_send_command(void *object, const struct spa_command *comman
|
||||||
set_timer(this, true);
|
set_timer(this, true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case SPA_NODE_COMMAND_Suspend:
|
||||||
case SPA_NODE_COMMAND_Pause:
|
case SPA_NODE_COMMAND_Pause:
|
||||||
if (!port->have_format)
|
if (!port->have_format)
|
||||||
return -EIO;
|
return -EIO;
|
||||||
|
|
|
||||||
|
|
@ -377,6 +377,7 @@ static int impl_node_send_command(void *object, const struct spa_command *comman
|
||||||
set_timer(this, true);
|
set_timer(this, true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case SPA_NODE_COMMAND_Suspend:
|
||||||
case SPA_NODE_COMMAND_Pause:
|
case SPA_NODE_COMMAND_Pause:
|
||||||
if (!port->have_format)
|
if (!port->have_format)
|
||||||
return -EIO;
|
return -EIO;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue