mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
adapter: only become started on success
This commit is contained in:
parent
f4e8ebab51
commit
cb3f1b51aa
1 changed files with 5 additions and 1 deletions
|
|
@ -511,7 +511,6 @@ static int impl_node_send_command(void *object, const struct spa_command *comman
|
||||||
return res;
|
return res;
|
||||||
if ((res = negotiate_buffers(this)) < 0)
|
if ((res = negotiate_buffers(this)) < 0)
|
||||||
return res;
|
return res;
|
||||||
this->started = true;
|
|
||||||
break;
|
break;
|
||||||
case SPA_NODE_COMMAND_Suspend:
|
case SPA_NODE_COMMAND_Suspend:
|
||||||
configure_format(this, 0, NULL);
|
configure_format(this, 0, NULL);
|
||||||
|
|
@ -536,6 +535,11 @@ static int impl_node_send_command(void *object, const struct spa_command *comman
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
switch (SPA_NODE_COMMAND_ID(command)) {
|
||||||
|
case SPA_NODE_COMMAND_Start:
|
||||||
|
this->started = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue