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

@ -254,7 +254,7 @@ static void recycle_buffer(struct state *this, uint32_t buffer_id)
spa_return_if_fail(b->outstanding);
b->outstanding = false;
spa_list_insert(this->free.prev, &b->link);
spa_list_append(&this->free, &b->link);
}
static int clear_buffers(struct state *this)
@ -448,7 +448,7 @@ impl_node_port_use_buffers(struct spa_node *node,
spa_log_error(this->log, NAME " %p: need mapped memory", this);
return SPA_RESULT_ERROR;
}
spa_list_insert(this->free.prev, &b->link);
spa_list_append(&this->free, &b->link);
}
this->n_buffers = n_buffers;