lib/chromaprint/DecoderClient: add assertion
This commit is contained in:
parent
d942f874ae
commit
3824bf66ca
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue