Commit bd53d105 authored by David Reid's avatar David Reid

Properly propagate errors from ma_decoder_read_pcm_frames().

parent 6dec8c07
......@@ -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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment