From c6d0075796b2fcd7a6ebab9bdf003c0f458e8089 Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Mon, 14 Oct 2024 13:00:28 +0200 Subject: [PATCH] LibWeb: Report audio decoding errors to debug console --- Userland/Libraries/LibWeb/Platform/AudioCodecPluginAgnostic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/Platform/AudioCodecPluginAgnostic.cpp b/Userland/Libraries/LibWeb/Platform/AudioCodecPluginAgnostic.cpp index cd680416ae4..7c454e2b0c1 100644 --- a/Userland/Libraries/LibWeb/Platform/AudioCodecPluginAgnostic.cpp +++ b/Userland/Libraries/LibWeb/Platform/AudioCodecPluginAgnostic.cpp @@ -46,8 +46,8 @@ ErrorOr> 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); }