mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-10-25 16:08:30 -04:00
WiP: Fixed error handling in decoder/encoder/Operation layer
This commit is contained in:
1 parent
b098ab98fb
commit
0df92c22c7
10 files changed
+44
-11
No files matched your search
@@ -23,16 +23,19 @@ namespace audio {
|
||||
decoder(fileName),
|
||||
tag(std::make_unique<Tags>()) {
|
||||
|
||||
if(fileSize == 0){
|
||||
return;
|
||||
}
|
||||
|
||||
mp3d = static_cast<mp3dec_t *>(malloc(sizeof(mp3dec_t)));
|
||||
|
||||
mp3dec_init(mp3d);
|
||||
|
||||
if (!find_first_valid_frame()) {
|
||||
//error
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
isInitialized = true;
|
||||
}
|
||||
|
||||
decoderMP3::~decoderMP3() {
|
||||
|
||||
Reference in new issue
Block a user