Fixed assertion in audio_convertAudio

This commit is contained in:
Brick authored and Ryan C. Gordon committed 2023-08-14 15:07:18 -04:00
1 parent 33f11e21ee
commit 32cecc2eac
1 file changed
+1 -1
+1 -1
View File
@@ -703,7 +703,7 @@ static int audio_convertAudio(void *arg)
src_len = l * src_samplesize; src_len = l * src_samplesize;
SDLTest_Log("Creating dummy sample buffer of %i length (%i bytes)", l, src_len); SDLTest_Log("Creating dummy sample buffer of %i length (%i bytes)", l, src_len);
src_buf = (Uint8 *)SDL_malloc(src_len); src_buf = (Uint8 *)SDL_malloc(src_len);
SDLTest_AssertCheck(dst_buf != NULL, "Check src data buffer to convert is not NULL"); SDLTest_AssertCheck(src_buf != NULL, "Check src data buffer to convert is not NULL");
if (src_buf == NULL) { if (src_buf == NULL) {
return TEST_ABORTED; return TEST_ABORTED;
} }