WiP: Fixed error handling in decoder/encoder/Operation layer

This commit is contained in:
Mateusz committed 2019-08-02 13:55:25 +02:00
1 parent b098ab98fb
commit 0df92c22c7
10 files changed
+44 -11

No files matched your search

+5 -2
View File
@@ -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() {