comparison libmpcodecs/ad_realaud.c @ 23631:055f06fadc0c

Move variable into the block where it actually used
author reimar
date Sun, 24 Jun 2007 14:04:48 +0000
parents 0c6e8d9da11a
children e7c989f7a7c9
comparison
equal deleted inserted replaced
23630:a2c1e8b60819 23631:055f06fadc0c
227 #ifdef USE_WIN32DLL 227 #ifdef USE_WIN32DLL
228 if((raSetDLLAccessPath && dll_type == 0) || (wraSetDLLAccessPath && dll_type == 1)){ 228 if((raSetDLLAccessPath && dll_type == 0) || (wraSetDLLAccessPath && dll_type == 1)){
229 #else 229 #else
230 if(raSetDLLAccessPath){ 230 if(raSetDLLAccessPath){
231 #endif 231 #endif
232 int i;
233 // used by 'SIPR' 232 // used by 'SIPR'
234 path = realloc(path, strlen(REALCODEC_PATH) + 13); 233 path = realloc(path, strlen(REALCODEC_PATH) + 13);
235 sprintf(path, "DT_Codecs=" REALCODEC_PATH); 234 sprintf(path, "DT_Codecs=" REALCODEC_PATH);
236 if(path[strlen(path)-1]!='/'){ 235 if(path[strlen(path)-1]!='/'){
237 path[strlen(path)+1]=0; 236 path[strlen(path)+1]=0;
239 } 238 }
240 path[strlen(path)+1]=0; 239 path[strlen(path)+1]=0;
241 #ifdef USE_WIN32DLL 240 #ifdef USE_WIN32DLL
242 if (dll_type == 1) 241 if (dll_type == 1)
243 { 242 {
243 int i;
244 for (i=0; i < strlen(path); i++) 244 for (i=0; i < strlen(path); i++)
245 if (path[i] == '/') path[i] = '\\'; 245 if (path[i] == '/') path[i] = '\\';
246 wraSetDLLAccessPath(path); 246 wraSetDLLAccessPath(path);
247 } 247 }
248 else 248 else