Some scan-build fixing up

This commit is contained in:
ejurgensen 2017-01-28 22:37:56 +01:00
parent 12567d8e93
commit b44ae55c1d
3 changed files with 4 additions and 3 deletions

View File

@ -439,7 +439,7 @@ pipe_enum(void)
continue;
}
pipe = pipe_new(dbmfi.path, id, PIPE_PCM, pipe_read_cb);
pipe_new(dbmfi.path, id, PIPE_PCM, pipe_read_cb);
}
db_query_end(&qp);

View File

@ -1035,6 +1035,7 @@ static int
source_read(uint8_t *buf, int len)
{
int nbytes;
uint32_t item_id;
int ret;
short flags;
@ -1051,8 +1052,9 @@ source_read(uint8_t *buf, int len)
DPRINTF(E_LOG, L_PLAYER, "Error reading source %d\n", cur_streaming->id);
nbytes = 0;
item_id = cur_streaming->item_id;
ret = source_switch(0);
db_queue_delete_byitemid(cur_streaming->item_id);
db_queue_delete_byitemid(item_id);
if (ret < 0)
return -1;
}

View File

@ -1096,7 +1096,6 @@ open_filter(struct filter_ctx *filter_ctx, AVCodecContext *dec_ctx, AVCodecConte
if (!buffersrc || !format || !buffersink)
{
DPRINTF(E_LOG, L_XCODE, "Filtering source, format or sink element not found\n");
ret = AVERROR_UNKNOWN;
goto out_fail;
}