mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +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;
|
||||
}
|
||||
|
||||
if (totalFramesReadOut == 0) {
|
||||
return MA_AT_END;
|
||||
if (result == MA_SUCCESS && totalFramesReadOut == 0) {
|
||||
result = MA_AT_END;
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user