input/Curl: break loop when remaining length becomes 0
Fixes assertion failure (regression).
This commit is contained in:
parent
49e79620fd
commit
452a30d7af
@ -776,6 +776,9 @@ read_from_buffer(IcyMetaDataParser &icy, std::list<CurlInputBuffer> &buffers,
|
||||
buffers.pop_front();
|
||||
break;
|
||||
}
|
||||
|
||||
if (length == 0)
|
||||
break;
|
||||
}
|
||||
|
||||
chunk = icy.Meta(buffer.Begin(), length);
|
||||
@ -788,6 +791,9 @@ read_from_buffer(IcyMetaDataParser &icy, std::list<CurlInputBuffer> &buffers,
|
||||
buffers.pop_front();
|
||||
break;
|
||||
}
|
||||
|
||||
if (length == 0)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user