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
Notes:
sideshowbarker
2024-07-17 11:33:34 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/553d35e503 Pull-request: https://github.com/SerenityOS/serenity/pull/20576 Reviewed-by: https://github.com/ADKaster ✅
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
Reference in a new issue