mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-27 21:37:37 -04:00
scheduler: don't use & when && is wanted
This commit is contained in:
parent
22536600b8
commit
63d824d35e
1 changed files with 2 additions and 2 deletions
|
|
@ -99,9 +99,9 @@ static int ensure_state(struct pw_impl_node *node, bool running, bool idle)
|
||||||
{
|
{
|
||||||
enum pw_node_state state = node->info.state;
|
enum pw_node_state state = node->info.state;
|
||||||
bool need_config = SPA_FLAG_IS_SET(node->spa_flags, SPA_NODE_FLAG_NEED_CONFIGURE);
|
bool need_config = SPA_FLAG_IS_SET(node->spa_flags, SPA_NODE_FLAG_NEED_CONFIGURE);
|
||||||
if (node->active && node->runnable && !need_config & running)
|
if (node->active && node->runnable && !need_config && running)
|
||||||
state = PW_NODE_STATE_RUNNING;
|
state = PW_NODE_STATE_RUNNING;
|
||||||
else if (!node->active && !need_config & idle)
|
else if (!node->active && !need_config && idle)
|
||||||
state = PW_NODE_STATE_IDLE;
|
state = PW_NODE_STATE_IDLE;
|
||||||
else if (state > PW_NODE_STATE_IDLE)
|
else if (state > PW_NODE_STATE_IDLE)
|
||||||
state = PW_NODE_STATE_IDLE;
|
state = PW_NODE_STATE_IDLE;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue