mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:38:11 +00:00
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:
parent
7824206f34
commit
553d35e503
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue