lib/chromaprint/DecoderClient: add assertion
This commit is contained in:
@@ -68,6 +68,8 @@ ChromaprintDecoderClient::SubmitData(InputStream *,
|
|||||||
const void *_data, size_t length,
|
const void *_data, size_t length,
|
||||||
uint16_t) noexcept
|
uint16_t) noexcept
|
||||||
{
|
{
|
||||||
|
assert(ready);
|
||||||
|
|
||||||
if (length > remaining_bytes)
|
if (length > remaining_bytes)
|
||||||
remaining_bytes = 0;
|
remaining_bytes = 0;
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user