mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-10-26 08:28:29 -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
@@ -46,8 +46,7 @@ namespace audio {
|
||||
dec = std::make_unique<decoderFLAC>(file);
|
||||
}
|
||||
|
||||
if (dec->fileSize == 0) {
|
||||
//error
|
||||
if (!dec->isInitialized) {
|
||||
return nullptr;
|
||||
} else {
|
||||
return dec;
|
||||
|
||||
Reference in new issue
Block a user