mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-31 01:33:44 -04:00
Some scan-build fixing up
This commit is contained in:
parent
12567d8e93
commit
b44ae55c1d
@ -439,7 +439,7 @@ pipe_enum(void)
|
|||||||
continue;
|
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);
|
db_query_end(&qp);
|
||||||
|
@ -1035,6 +1035,7 @@ static int
|
|||||||
source_read(uint8_t *buf, int len)
|
source_read(uint8_t *buf, int len)
|
||||||
{
|
{
|
||||||
int nbytes;
|
int nbytes;
|
||||||
|
uint32_t item_id;
|
||||||
int ret;
|
int ret;
|
||||||
short flags;
|
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);
|
DPRINTF(E_LOG, L_PLAYER, "Error reading source %d\n", cur_streaming->id);
|
||||||
|
|
||||||
nbytes = 0;
|
nbytes = 0;
|
||||||
|
item_id = cur_streaming->item_id;
|
||||||
ret = source_switch(0);
|
ret = source_switch(0);
|
||||||
db_queue_delete_byitemid(cur_streaming->item_id);
|
db_queue_delete_byitemid(item_id);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -1096,7 +1096,6 @@ open_filter(struct filter_ctx *filter_ctx, AVCodecContext *dec_ctx, AVCodecConte
|
|||||||
if (!buffersrc || !format || !buffersink)
|
if (!buffersrc || !format || !buffersink)
|
||||||
{
|
{
|
||||||
DPRINTF(E_LOG, L_XCODE, "Filtering source, format or sink element not found\n");
|
DPRINTF(E_LOG, L_XCODE, "Filtering source, format or sink element not found\n");
|
||||||
ret = AVERROR_UNKNOWN;
|
|
||||||
goto out_fail;
|
goto out_fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user