Fix a null pointer dereference in the audio queue.

This commit is contained in:
David Reid
2026-01-22 11:34:35 +10:00
parent 8a43271555
commit bef32b4419
+3 -1
View File
@@ -66416,7 +66416,9 @@ MA_API ma_result ma_audio_queue_read_pcm_frames(ma_audio_queue* pAudioQueue, voi
}
ma_spinlock_unlock(&pAudioQueue->lock);
*pFramesRead = frameCount;
if (pFramesRead != NULL) {
*pFramesRead = frameCount;
}
/* Note that we never returning MA_AT_END for a queue because there isn't really a notion of it. */
return MA_SUCCESS;