mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:07:45 +00:00
LibAudio: Use handle_any_error in WAV loader
It was using has_any_error, which causes an assertion failure when destroying the stream. Instead, use handle_any_error, as the WAV loader does handle errors.
This commit is contained in:
parent
a66f96ff62
commit
69df86c1d6
1 changed files with 3 additions and 3 deletions
|
@ -125,7 +125,7 @@ bool WavLoaderPlugin::parse_header()
|
||||||
ok = false;
|
ok = false;
|
||||||
} else {
|
} else {
|
||||||
*m_stream >> value;
|
*m_stream >> value;
|
||||||
if (m_stream->has_any_error())
|
if (m_stream->handle_any_error())
|
||||||
ok = false;
|
ok = false;
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
|
@ -139,7 +139,7 @@ bool WavLoaderPlugin::parse_header()
|
||||||
ok = false;
|
ok = false;
|
||||||
} else {
|
} else {
|
||||||
*m_stream >> value;
|
*m_stream >> value;
|
||||||
if (m_stream->has_any_error())
|
if (m_stream->handle_any_error())
|
||||||
ok = false;
|
ok = false;
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
|
@ -153,7 +153,7 @@ bool WavLoaderPlugin::parse_header()
|
||||||
ok = false;
|
ok = false;
|
||||||
} else {
|
} else {
|
||||||
*m_stream >> value;
|
*m_stream >> value;
|
||||||
if (m_stream->has_any_error())
|
if (m_stream->handle_any_error())
|
||||||
ok = false;
|
ok = false;
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue