mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
Revert "impl-node: improve suspend"
This reverts commit 3b052eaa99.
This causes problems because the session manager wants to suspend the
running nodes before changing the port-config.
This commit is contained in:
parent
e90cab1cde
commit
b62675b39d
1 changed files with 1 additions and 4 deletions
|
|
@ -591,7 +591,6 @@ static int node_send_command(void *object, const struct spa_command *command)
|
||||||
{
|
{
|
||||||
struct resource_data *data = object;
|
struct resource_data *data = object;
|
||||||
struct pw_impl_node *node = data->node;
|
struct pw_impl_node *node = data->node;
|
||||||
struct impl *impl = SPA_CONTAINER_OF(node, struct impl, this);
|
|
||||||
uint32_t id = SPA_NODE_COMMAND_ID(command);
|
uint32_t id = SPA_NODE_COMMAND_ID(command);
|
||||||
|
|
||||||
pw_log_debug("%p: got command %d (%s)", node, id,
|
pw_log_debug("%p: got command %d (%s)", node, id,
|
||||||
|
|
@ -599,9 +598,7 @@ static int node_send_command(void *object, const struct spa_command *command)
|
||||||
|
|
||||||
switch (id) {
|
switch (id) {
|
||||||
case SPA_NODE_COMMAND_Suspend:
|
case SPA_NODE_COMMAND_Suspend:
|
||||||
if (node->info.state == PW_NODE_STATE_ERROR ||
|
suspend_node(node);
|
||||||
impl->pending_state == PW_NODE_STATE_IDLE)
|
|
||||||
suspend_node(node);
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
spa_node_send_command(node->node, command);
|
spa_node_send_command(node->node, command);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue