Mercurial > audlegacy-plugins
comparison src/madplug/plugin.c @ 633:0341583ad50c trunk
[svn] - filter out .ogg extension
| author | nenolod |
|---|---|
| date | Sun, 11 Feb 2007 02:44:18 -0800 |
| parents | ca4cd00ca0c8 |
| children | ede814584df9 |
comparison
equal
deleted
inserted
replaced
| 632:04648c436d20 | 633:0341583ad50c |
|---|---|
| 212 #endif | 212 #endif |
| 213 | 213 |
| 214 /* I've seen some flac files beginning with id3 frames.. | 214 /* I've seen some flac files beginning with id3 frames.. |
| 215 so let's exclude known non-mp3 filename extensions */ | 215 so let's exclude known non-mp3 filename extensions */ |
| 216 if (!strcasecmp(".flac", ext) || !strcasecmp(".mpc", ext) || | 216 if (!strcasecmp(".flac", ext) || !strcasecmp(".mpc", ext) || |
| 217 !strcasecmp(".tta", ext)) | 217 !strcasecmp(".tta", ext) || !strcasecmp(".ogg", ext)) |
| 218 return 0; | 218 return FALSE; |
| 219 | 219 |
| 220 if (fin == NULL) | 220 if (fin == NULL) |
| 221 return FALSE; | 221 return FALSE; |
| 222 | 222 |
| 223 vfs_fread(buf, 1, 4, fin); | 223 vfs_fread(buf, 1, 4, fin); |
