mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:07:45 +00:00
LibAudio: Remove try_
prefix from fallible LoaderPlugin methods
This commit is contained in:
parent
108ea2b921
commit
ee0297d9ec
11 changed files with 22 additions and 22 deletions
|
@ -11,7 +11,7 @@
|
|||
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
|
||||
{
|
||||
auto flac_data = ByteBuffer::copy(data, size).release_value();
|
||||
auto flac_or_error = Audio::FlacLoaderPlugin::try_create(flac_data.bytes());
|
||||
auto flac_or_error = Audio::FlacLoaderPlugin::create(flac_data.bytes());
|
||||
|
||||
if (flac_or_error.is_error())
|
||||
return 0;
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
|
||||
{
|
||||
auto flac_data = ByteBuffer::copy(data, size).release_value();
|
||||
auto mp3_or_error = Audio::MP3LoaderPlugin::try_create(flac_data.bytes());
|
||||
auto mp3_or_error = Audio::MP3LoaderPlugin::create(flac_data.bytes());
|
||||
|
||||
if (mp3_or_error.is_error())
|
||||
return 0;
|
||||
|
|
|
@ -13,7 +13,7 @@ extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
|
|||
if (!data)
|
||||
return 0;
|
||||
auto wav_data = ReadonlyBytes { data, size };
|
||||
auto wav_or_error = Audio::WavLoaderPlugin::try_create(wav_data);
|
||||
auto wav_or_error = Audio::WavLoaderPlugin::create(wav_data);
|
||||
|
||||
if (wav_or_error.is_error())
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue