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

+1 -2
View File
@@ -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;