Ladybird: Create a runtime error for unknown audio codec plugins

This will allow us to bring the WebContent process into non-Qt macOS
chromes. This branch is only reached when creating an <audio> element,
so while the chrome is heavily under development, we can just avoid
these elements.
This commit is contained in:
Timothy Flynn 2023-08-14 13:05:16 -04:00 committed by Andrew Kaster
parent 7824206f34
commit 553d35e503
Notes: sideshowbarker 2024-07-17 11:33:34 +09:00

View File

@ -65,7 +65,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
#elif defined(HAVE_QT)
return Ladybird::AudioCodecPluginQt::create(move(loader));
#else
# error "Don't know how to initialize audio in this configuration!"
(void)loader;
return Error::from_string_literal("Don't know how to initialize audio in this configuration!");
#endif
});