mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb: Report audio decoding errors to debug console
This commit is contained in:
parent
917a2a3c86
commit
c6d0075796
|
|
@ -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 New Issue
Block a user