mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
alsa: minor fixes in seq code
port_enum_params should use right param id for SPA_PARAM_Format. Fix typoed , instead of ; at end of line. Pop frame before putting state.offset, in case there would be padding added (apparently usually no).
This commit is contained in:
parent
e381a26de9
commit
e96b0ed4a8
2 changed files with 4 additions and 4 deletions
|
|
@ -586,11 +586,11 @@ static int process_read(struct seq_state *state)
|
|||
continue;
|
||||
|
||||
if (prepare_buffer(state, port) >= 0) {
|
||||
port->buffer->buf->datas[0].chunk->offset = 0;
|
||||
port->buffer->buf->datas[0].chunk->size = port->builder.state.offset,
|
||||
|
||||
spa_pod_builder_pop(&port->builder, &port->frame);
|
||||
|
||||
port->buffer->buf->datas[0].chunk->offset = 0;
|
||||
port->buffer->buf->datas[0].chunk->size = port->builder.state.offset;
|
||||
|
||||
/* move buffer to ready queue */
|
||||
spa_list_remove(&port->buffer->link);
|
||||
SPA_FLAG_SET(port->buffer->flags, BUFFER_FLAG_OUT);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue