comparison src/audio/arts/SDL_artsaudio.c @ 864:0c892e99b65b

Date: Sun, 29 Feb 2004 20:28:27 +0200 From: Martin_Storsj Subject: Slight bug in ESD and aRts When I experimented with the ALSA-patch, I found a slight bug in the Load{ESD,ARTS}Library-functions. The check of whether a function pointer was correctly loaded looks like this right now: *esd_functions[i].func = SDL_LoadFunction(esd_handle, esd_functions[i].name); if ( ! esd_functions[i].func ) Isn't that supposed to be ( ! *esd_functions[i].func )?
author Sam Lantinga <slouken@libsdl.org>
date Tue, 02 Mar 2004 12:45:22 +0000
parents b8d311d90021
children 03fb90fc135e
comparison
equal deleted inserted replaced
863:a4853bc3b4f8 864:0c892e99b65b
104 if ( arts_handle ) { 104 if ( arts_handle ) {
105 arts_loaded = 1; 105 arts_loaded = 1;
106 retval = 0; 106 retval = 0;
107 for ( i=0; i<SDL_TABLESIZE(arts_functions); ++i ) { 107 for ( i=0; i<SDL_TABLESIZE(arts_functions); ++i ) {
108 *arts_functions[i].func = SDL_LoadFunction(arts_handle, arts_functions[i].name); 108 *arts_functions[i].func = SDL_LoadFunction(arts_handle, arts_functions[i].name);
109 if ( ! arts_functions[i].func ) { 109 if ( !*arts_functions[i].func ) {
110 retval = -1; 110 retval = -1;
111 UnloadARTSLibrary(); 111 UnloadARTSLibrary();
112 break; 112 break;
113 } 113 }
114 } 114 }