diff --git a/src/add-ons/media/plugins/mp3_decoder/mp3DecoderPlugin.cpp b/src/add-ons/media/plugins/mp3_decoder/mp3DecoderPlugin.cpp index 6b8cd9aee0..1be1c4477d 100644 --- a/src/add-ons/media/plugins/mp3_decoder/mp3DecoderPlugin.cpp +++ b/src/add-ons/media/plugins/mp3_decoder/mp3DecoderPlugin.cpp @@ -372,7 +372,12 @@ mp3DecoderPlugin::RegisterDecoder() format.type = B_MEDIA_ENCODED_AUDIO; format.u.encoded_audio = media_encoded_audio_format::wildcard; - return BMediaFormats().MakeFormatFor(descriptions, numIDs, &format); + BMediaFormats formats; + status_t result = formats.InitCheck(); + if (result != B_OK) { + return result; + } + return formats.MakeFormatFor(descriptions, numIDs, &format); }