LibWeb: Report audio decoding errors to debug console

This commit is contained in:
Jelle Raaijmakers 2024-10-14 13:00:28 +02:00 committed by Tim Flynn
parent 917a2a3c86
commit c6d0075796
Notes: github-actions[bot] 2024-10-14 16:05:47 +00:00

View file

@ -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);
}