Mercurial > mplayer.hg
comparison loader/driver.c @ 26757:0fdf04b07ecb
cosmetics: Remove pointless parentheses from return statements.
author | diego |
---|---|
date | Fri, 16 May 2008 09:31:55 +0000 |
parents | b70f5ac9c001 |
children |
comparison
equal
deleted
inserted
replaced
26756:c43ce7268677 | 26757:0fdf04b07ecb |
---|---|
156 #endif | 156 #endif |
157 printf("Loading codec DLL: '%s'\n",filename); | 157 printf("Loading codec DLL: '%s'\n",filename); |
158 | 158 |
159 hDriver = (NPDRVR) malloc(sizeof(DRVR)); | 159 hDriver = (NPDRVR) malloc(sizeof(DRVR)); |
160 if (!hDriver) | 160 if (!hDriver) |
161 return ((HDRVR) 0); | 161 return (HDRVR) 0; |
162 memset((void*)hDriver, 0, sizeof(DRVR)); | 162 memset((void*)hDriver, 0, sizeof(DRVR)); |
163 | 163 |
164 #ifdef WIN32_LOADER | 164 #ifdef WIN32_LOADER |
165 CodecAlloc(); | 165 CodecAlloc(); |
166 Setup_FS_Segment(); | 166 Setup_FS_Segment(); |
169 hDriver->hDriverModule = LoadLibraryA(filename); | 169 hDriver->hDriverModule = LoadLibraryA(filename); |
170 if (!hDriver->hDriverModule) | 170 if (!hDriver->hDriverModule) |
171 { | 171 { |
172 printf("Can't open library %s\n", filename); | 172 printf("Can't open library %s\n", filename); |
173 DrvClose((HDRVR)hDriver); | 173 DrvClose((HDRVR)hDriver); |
174 return ((HDRVR) 0); | 174 return (HDRVR) 0; |
175 } | 175 } |
176 | 176 |
177 hDriver->DriverProc = (DRIVERPROC) GetProcAddress(hDriver->hDriverModule, | 177 hDriver->DriverProc = (DRIVERPROC) GetProcAddress(hDriver->hDriverModule, |
178 "DriverProc"); | 178 "DriverProc"); |
179 if (!hDriver->DriverProc) | 179 if (!hDriver->DriverProc) |
180 { | 180 { |
181 printf("Library %s is not a valid VfW/ACM codec\n", filename); | 181 printf("Library %s is not a valid VfW/ACM codec\n", filename); |
182 DrvClose((HDRVR)hDriver); | 182 DrvClose((HDRVR)hDriver); |
183 return ((HDRVR) 0); | 183 return (HDRVR) 0; |
184 } | 184 } |
185 | 185 |
186 TRACE("DriverProc == %X\n", hDriver->DriverProc); | 186 TRACE("DriverProc == %X\n", hDriver->DriverProc); |
187 SendDriverMessage((HDRVR)hDriver, DRV_LOAD, 0, 0); | 187 SendDriverMessage((HDRVR)hDriver, DRV_LOAD, 0, 0); |
188 TRACE("DRV_LOAD Ok!\n"); | 188 TRACE("DRV_LOAD Ok!\n"); |