--- a/src/audio/qsa/SDL_qsa_audio.c Thu May 14 10:54:34 2009 +0000
+++ b/src/audio/qsa/SDL_qsa_audio.c Thu May 14 11:50:05 2009 +0000
@@ -92,7 +92,7 @@
static inline void QSA_SetError(const char* fn, int status)
{
- SDL_SetError("QSA: %s failed: %s", fn, snd_strerror(status));
+ SDL_SetError("QSA: %s() failed: %s", fn, snd_strerror(status));
}
/* card names check to apply the workarounds */
@@ -479,6 +479,7 @@
/* Check if requested device is opened */
if (status<0)
{
+ this->hidden->audio_handle=NULL;
QSA_CloseDevice(this);
QSA_SetError("snd_pcm_open", status);
return 0;