Mercurial > audlegacy-plugins
comparison src/madplug/plugin.c @ 2685:45be141b7586
Use a bit bigger buffer.
| author | Matti Hamalainen <ccr@tnsp.org> |
|---|---|
| date | Thu, 05 Jun 2008 15:45:12 +0300 |
| parents | 84d34cd6aa71 |
| children | 206f0322d221 |
comparison
equal
deleted
inserted
replaced
| 2684:e48338bffeef | 2685:45be141b7586 |
|---|---|
| 252 static int | 252 static int |
| 253 audmad_is_our_fd(char *filename, VFSFile *fin) | 253 audmad_is_our_fd(char *filename, VFSFile *fin) |
| 254 { | 254 { |
| 255 guint32 check; | 255 guint32 check; |
| 256 gchar *ext = extname(filename); | 256 gchar *ext = extname(filename); |
| 257 guchar buf[4]; | 257 guchar buf[16]; |
| 258 | 258 |
| 259 info.remote = aud_vfs_is_remote(filename); | 259 info.remote = aud_vfs_is_remote(filename); |
| 260 | 260 |
| 261 /* I've seen some flac files beginning with id3 frames.. | 261 /* I've seen some flac files beginning with id3 frames.. |
| 262 so let's exclude known non-mp3 filename extensions */ | 262 so let's exclude known non-mp3 filename extensions */ |
| 270 if (fin == NULL) { | 270 if (fin == NULL) { |
| 271 g_message("fin = NULL for %s", filename); | 271 g_message("fin = NULL for %s", filename); |
| 272 return 0; | 272 return 0; |
| 273 } | 273 } |
| 274 | 274 |
| 275 if (aud_vfs_fread(buf, 1, 4, fin) == 0) { | 275 if (aud_vfs_fread(buf, 1, sizeof(buf), fin) == 0) { |
| 276 g_message("aud_vfs_fread failed @1 %s", filename); | 276 g_message("aud_vfs_fread failed @1 %s", filename); |
| 277 return 0; | 277 return 0; |
| 278 } | 278 } |
| 279 | 279 |
| 280 check = mp3_head_convert(buf); | 280 check = mp3_head_convert(buf); |
