mirror of
https://github.com/taglib/taglib.git
synced 2025-06-03 00:58:12 -04:00
Show a debugging message when we have an error reading
This commit is contained in:
parent
caa53e8de5
commit
57729b834a
@ -274,13 +274,14 @@ ByteVector Frame::fieldData(const ByteVector &frameData) const
|
||||
|
||||
int result = inflate(&stream, Z_NO_FLUSH);
|
||||
|
||||
if(result == Z_STREAM_ERROR)
|
||||
return ByteVector();
|
||||
else if(result == Z_NEED_DICT ||
|
||||
result == Z_DATA_ERROR ||
|
||||
result == Z_MEM_ERROR)
|
||||
if(result == Z_STREAM_ERROR ||
|
||||
result == Z_NEED_DICT ||
|
||||
result == Z_DATA_ERROR ||
|
||||
result == Z_MEM_ERROR)
|
||||
{
|
||||
inflateEnd(&stream);
|
||||
if(result != Z_STREAM_ERROR)
|
||||
inflateEnd(&stream);
|
||||
debug("Error reading compressed stream");
|
||||
return ByteVector();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user