mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
LibWeb: Report audio decoding errors to debug console
This commit is contained in:
parent
917a2a3c86
commit
c6d0075796
Notes:
github-actions[bot]
2024-10-14 16:05:47 +00:00
Author: https://github.com/gmta Commit: https://github.com/LadybirdBrowser/ladybird/commit/c6d0075796b Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1787
1 changed files with 1 additions and 1 deletions
|
@ -46,8 +46,8 @@ ErrorOr<NonnullOwnPtr<AudioCodecPluginAgnostic>> AudioCodecPluginAgnostic::creat
|
|||
VERIFY(format == Audio::PcmSampleFormat::Float32);
|
||||
|
||||
auto samples_result = loader->get_more_samples(sample_count);
|
||||
|
||||
if (samples_result.is_error()) {
|
||||
dbgln("Error while loading samples: {}", samples_result.error());
|
||||
plugin.on_decoder_error(MUST(String::formatted("Decoding failure: {}", samples_result.error())));
|
||||
return buffer.trim(0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue