src/audio/SDL_audiocvt.c
changeset 11634 ced7925b7a95
parent 11632 385312bd6594
child 11636 ec1c9bded2d0
     1.1 --- a/src/audio/SDL_audiocvt.c	Wed Oct 18 19:30:47 2017 -0700
     1.2 +++ b/src/audio/SDL_audiocvt.c	Wed Oct 18 23:49:46 2017 -0400
     1.3 @@ -1299,7 +1299,7 @@
     1.4      retval->staging_buffer_size = ((retval->resampler_padding_samples / retval->pre_resample_channels) * retval->src_sample_frame_size);
     1.5      if (retval->staging_buffer_size > 0) {
     1.6          retval->staging_buffer = (Uint8 *) SDL_malloc(retval->staging_buffer_size);
     1.7 -        if (retval->resampler_padding == NULL) {
     1.8 +        if (retval->staging_buffer == NULL) {
     1.9              SDL_FreeAudioStream(retval);
    1.10              SDL_OutOfMemory();
    1.11              return NULL;