mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
volume: fix build
This commit is contained in:
parent
1c23310595
commit
27eabede35
1 changed files with 3 additions and 3 deletions
|
|
@ -540,7 +540,7 @@ impl_node_port_use_buffers(void *object,
|
|||
buffers[i]);
|
||||
return -EINVAL;
|
||||
}
|
||||
if (!SPA_FLAG_CHECK(b->flags, BUFFER_FLAG_OUT))
|
||||
if (!SPA_FLAG_IS_SET(b->flags, BUFFER_FLAG_OUT))
|
||||
spa_list_append(&port->empty, &b->link);
|
||||
}
|
||||
port->n_buffers = n_buffers;
|
||||
|
|
@ -578,13 +578,13 @@ static void recycle_buffer(struct impl *this, uint32_t id)
|
|||
struct port *port = GET_OUT_PORT(this, 0);
|
||||
struct buffer *b = &port->buffers[id];
|
||||
|
||||
if (!SPA_FLAG_CHECK(b->flags, BUFFER_FLAG_OUT)) {
|
||||
if (!SPA_FLAG_IS_SET(b->flags, BUFFER_FLAG_OUT)) {
|
||||
spa_log_warn(this->log, NAME " %p: buffer %d not outstanding", this, id);
|
||||
return;
|
||||
}
|
||||
|
||||
spa_list_append(&port->empty, &b->link);
|
||||
SPA_FLAG_UNSET(b->flags, BUFFER_FLAG_OUT);
|
||||
SPA_FLAG_CLEAR(b->flags, BUFFER_FLAG_OUT);
|
||||
spa_log_trace(this->log, NAME " %p: recycle buffer %d", this, id);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue