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

@ -66,6 +66,7 @@ static void reset_props(struct props *props)
#define MAX_PORTS 1
struct buffer {
uint32_t id;
struct spa_buffer *outbuf;
bool outstanding;
struct spa_meta_header *h;
@ -237,6 +238,7 @@ static int impl_node_set_param(struct spa_node *node, uint32_t id, uint32_t flag
this->info.flags |= SPA_PORT_INFO_FLAG_LIVE;
else
this->info.flags &= ~SPA_PORT_INFO_FLAG_LIVE;
break;
}
default:
return -ENOENT;
@ -300,7 +302,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);
@ -318,7 +320,7 @@ static int make_buffer(struct impl *this)
this->elapsed_time = FRAMES_TO_TIME(this, this->frame_count);
set_timer(this, true);
io->buffer_id = b->outbuf->id;
io->buffer_id = b->id;
io->status = SPA_STATUS_HAVE_BUFFER;
return io->status;
@ -714,6 +716,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));