mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 16:54:03 +02:00
Properly propagate errors from ma_decoder_read_pcm_frames().
This commit is contained in:
+2
-2
@@ -50226,8 +50226,8 @@ MA_API ma_result ma_decoder_read_pcm_frames(ma_decoder* pDecoder, void* pFramesO
|
|||||||
*pFramesRead = totalFramesReadOut;
|
*pFramesRead = totalFramesReadOut;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (totalFramesReadOut == 0) {
|
if (result == MA_SUCCESS && totalFramesReadOut == 0) {
|
||||||
return MA_AT_END;
|
result = MA_AT_END;
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user