use spa_list_append when we can

This commit is contained in:
Wim Taymans 2017-10-24 12:58:10 +02:00
parent 4aaa2cbc6b
commit a691d07531
21 changed files with 41 additions and 42 deletions

View file

@ -649,7 +649,7 @@ static int impl_node_process_input(struct spa_node *node)
spa_log_trace(this->log, NAME " %p: queue buffer %u", this, input->buffer_id);
spa_list_insert(this->ready.prev, &b->link);
spa_list_append(&this->ready, &b->link);
b->outstanding = false;
input->buffer_id = SPA_ID_INVALID;

View file

@ -583,7 +583,7 @@ impl_node_port_use_buffers(struct spa_node *node,
spa_log_error(this->log, NAME " %p: invalid memory on buffer %p", this,
buffers[i]);
}
spa_list_insert(this->empty.prev, &b->link);
spa_list_append(&this->empty, &b->link);
}
this->n_buffers = n_buffers;
this->underrun = false;
@ -641,7 +641,7 @@ static inline void reuse_buffer(struct impl *this, uint32_t id)
spa_log_trace(this->log, NAME " %p: reuse buffer %d", this, id);
b->outstanding = false;
spa_list_insert(this->empty.prev, &b->link);
spa_list_append(&this->empty, &b->link);
if (this->underrun) {
set_timer(this, true);