From d3e77a0f6324eb46655c41f310bf3cde4341feb8 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 25 Dec 2009 13:19:25 -0800 Subject: Fix incorrect error check --- Alc/alsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Alc/alsa.c b/Alc/alsa.c index a1fec38f..50a0bd04 100644 --- a/Alc/alsa.c +++ b/Alc/alsa.c @@ -654,7 +654,7 @@ static ALCboolean alsa_reset_playback(ALCdevice *device) err = "sw set avail min"; if(i == 0 && (i=psnd_pcm_sw_params(data->pcmHandle, sp)) != 0) err = "sw set params"; - if(i == 0) + if(i != 0) { AL_PRINT("%s failed: %s\n", err, psnd_strerror(i)); psnd_pcm_sw_params_free(sp); -- cgit v1.2.3