mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
[input] Return quality flag even if read size is zero
First input_read() has bufsize 0, because we don't know quality yet
This commit is contained in:
parent
0cb3881621
commit
94dfef6e78
@ -323,7 +323,7 @@ input_read(void *data, size_t size, short *flags)
|
||||
// with multiple markers, and we don't return data that contains mixed sample
|
||||
// rates, bits per sample or an EOF in the middle.
|
||||
marker = input_buffer.marker_tail;
|
||||
if (marker && marker->pos < input_buffer.bytes_read + size)
|
||||
if (marker && marker->pos <= input_buffer.bytes_read + size)
|
||||
{
|
||||
*flags = marker->flags;
|
||||
if (*flags & INPUT_FLAG_QUALITY)
|
||||
|
Loading…
Reference in New Issue
Block a user