SDL/src/audio/alsa
Sam Lantinga d3919b512d Fixed bug #1085 (Jump to NULL function pointer on ALSA_OpenDevice)
Bruno      2010-12-16 02:41:51 PST

Fix segfault in ALSA_OpenDevice()

When alsa is linked to libsdl instead of being loaded on demand at runtime the
alsa macro snd_pcm_hw_params_alloca(ptr); misbehaves.

That macro calls snd_pcm_hw_params_sizeof() in order to determine the amount of
memory to allocate but due to mis-placed define that function is replaced with
ALSA_snd_pcm_hw_params_sizeof by preprocessor (and in case of link to alsa that
function pointer is initialized to itself).

Attached patch fixes the issue.
2011-02-16 04:08:28 -08:00
..
SDL_alsa_audio.c Fixed bug #1085 (Jump to NULL function pointer on ALSA_OpenDevice) 2011-02-16 04:08:28 -08:00
SDL_alsa_audio.h Happy 2011! :) 2011-02-11 22:37:15 -08:00