input/Curl: break loop when remaining length becomes 0
Fixes assertion failure (regression).
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user