plugins: fix warnings

This commit is contained in:
Wim Taymans 2019-01-07 18:14:04 +01:00
parent 44cb131269
commit b95584c312
5 changed files with 27 additions and 16 deletions

View file

@ -50,6 +50,7 @@ struct props {
#define MAX_PORTS 1
struct buffer {
uint32_t id;
struct spa_buffer *outbuf;
bool outstanding;
struct spa_meta_header *h;
@ -251,7 +252,7 @@ static int make_buffer(struct impl *this)
n_bytes = b->outbuf->datas[0].maxsize;
spa_log_trace(this->log, NAME " %p: dequeue buffer %d", this, b->outbuf->id);
spa_log_trace(this->log, NAME " %p: dequeue buffer %d", this, b->id);
fill_buffer(this, b);
@ -269,7 +270,7 @@ static int make_buffer(struct impl *this)
this->elapsed_time = this->buffer_count;
set_timer(this, true);
io->buffer_id = b->outbuf->id;
io->buffer_id = b->id;
io->status = SPA_STATUS_HAVE_BUFFER;
return SPA_STATUS_HAVE_BUFFER;
@ -615,6 +616,7 @@ impl_node_port_use_buffers(struct spa_node *node,
struct spa_data *d = buffers[i]->datas;
b = &this->buffers[i];
b->id = i;
b->outbuf = buffers[i];
b->outstanding = false;
b->h = spa_buffer_find_meta_data(buffers[i], SPA_META_Header, sizeof(*b->h));