mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
small cleanups
This commit is contained in:
parent
65e00631da
commit
c61d579d99
9 changed files with 34 additions and 19 deletions
|
|
@ -372,12 +372,14 @@ static int negotiate_link_buffers(struct impl *this, struct link *link)
|
|||
spa_pod_fixate(param);
|
||||
|
||||
if (link->in_info)
|
||||
in_alloc = SPA_FLAG_CHECK(link->in_info->flags, SPA_PORT_INFO_FLAG_CAN_ALLOC_BUFFERS);
|
||||
in_alloc = SPA_FLAG_CHECK(link->in_info->flags,
|
||||
SPA_PORT_INFO_FLAG_CAN_ALLOC_BUFFERS);
|
||||
else
|
||||
in_alloc = false;
|
||||
|
||||
if (link->out_info)
|
||||
out_alloc = SPA_FLAG_CHECK(link->out_info->flags, SPA_PORT_INFO_FLAG_CAN_ALLOC_BUFFERS);
|
||||
out_alloc = SPA_FLAG_CHECK(link->out_info->flags,
|
||||
SPA_PORT_INFO_FLAG_CAN_ALLOC_BUFFERS);
|
||||
else
|
||||
out_alloc = false;
|
||||
|
||||
|
|
|
|||
|
|
@ -721,8 +721,11 @@ impl_node_port_set_io(struct spa_node *node,
|
|||
|
||||
port = GET_PORT(this, direction, port_id);
|
||||
|
||||
if (id == t->io.Buffers)
|
||||
if (id == t->io.Buffers) {
|
||||
spa_log_trace(this->log, NAME " %p: port %d update buffer io %p",
|
||||
this, port_id, data);
|
||||
port->io = data;
|
||||
}
|
||||
else
|
||||
return -ENOENT;
|
||||
|
||||
|
|
@ -801,7 +804,8 @@ static int impl_node_process(struct spa_node *node)
|
|||
spa_return_val_if_fail(outio != NULL, -EIO);
|
||||
spa_return_val_if_fail(inio != NULL, -EIO);
|
||||
|
||||
spa_log_trace(this->log, NAME " %p: status %d %d", this, inio->status, outio->status);
|
||||
spa_log_trace(this->log, NAME " %p: status %p %d %p %d", this,
|
||||
inio, inio->status, outio, outio->status);
|
||||
|
||||
if (outio->status != SPA_STATUS_NEED_BUFFER)
|
||||
return outio->status;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue