mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-16 05:51:55 +00:00
LibMedia: Remove LibMedia::Audio::LoaderError
This class was used as little more than a wrapper around `Error`, so we might as well use `Error` in the first place.
This commit is contained in:
parent
f4b0d17e4b
commit
4d38e04e48
Notes:
github-actions[bot]
2024-11-22 11:44:49 +00:00
Author: https://github.com/yyny
Commit: 4d38e04e48
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2489
7 changed files with 52 additions and 149 deletions
|
@ -32,7 +32,7 @@ ErrorOr<FixedArray<Audio::Sample>> AudioCodecPlugin::read_samples_from_loader(Au
|
|||
{
|
||||
auto buffer_or_error = loader.get_more_samples(samples_to_load);
|
||||
if (buffer_or_error.is_error()) {
|
||||
dbgln("Error while loading samples: {}", buffer_or_error.error().description);
|
||||
dbgln("Error while loading samples: {}", buffer_or_error.error());
|
||||
return Error::from_string_literal("Error while loading samples");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue