Mercurial > audlegacy-plugins
comparison src/madplug/plugin.c @ 2736:4d9540bcd7e2
Automated merge with ssh://hg.atheme-project.org//hg//audacious-plugins
| author | Calin Crisan ccrisan@gmail.com |
|---|---|
| date | Tue, 01 Jul 2008 02:06:01 +0300 |
| parents | 324f950774cb |
| children | 4151640654ae |
comparison
equal
deleted
inserted
replaced
| 2735:6d6a3eb67510 | 2736:4d9540bcd7e2 |
|---|---|
| 275 ((guint32) hbuf[1] << 16) | | 275 ((guint32) hbuf[1] << 16) | |
| 276 ((guint32) hbuf[2] << 8) | | 276 ((guint32) hbuf[2] << 8) | |
| 277 ((guint32) hbuf[3]); | 277 ((guint32) hbuf[3]); |
| 278 } | 278 } |
| 279 | 279 |
| 280 #if 0 | 280 #undef MADPROBE_DEBUG |
| 281 | |
| 282 #ifdef MADPROBE_DEBUG | |
| 281 static gchar *mp3_ver_table[4] = { "2.5", "INVALID", "2", "1" }; | 283 static gchar *mp3_ver_table[4] = { "2.5", "INVALID", "2", "1" }; |
| 282 #define LULZ(...) do { fprintf(stderr, "madprobe: "); fprintf(stderr, __VA_ARGS__); } while (0) | 284 #define LULZ(...) do { fprintf(stderr, "madprobe: "); fprintf(stderr, __VA_ARGS__); } while (0) |
| 283 #define LOL(...) do { fprintf(stderr, __VA_ARGS__); } while (0) | 285 #define LOL(...) do { fprintf(stderr, __VA_ARGS__); } while (0) |
| 284 #else | 286 #else |
| 285 #define LULZ(...) do { } while(0) | 287 #define LULZ(...) do { } while(0) |
| 394 frame.layer != prev.layer || | 396 frame.layer != prev.layer || |
| 395 frame.version != prev.version) { | 397 frame.version != prev.version) { |
| 396 /* Not similar frame... */ | 398 /* Not similar frame... */ |
| 397 LOL(" .. but does not match (%d)!\n", chkcount); | 399 LOL(" .. but does not match (%d)!\n", chkcount); |
| 398 state = STATE_RESYNC; | 400 state = STATE_RESYNC; |
| 399 } else if (chkcount >= 5) { | 401 } else if (chkcount >= 3) { |
| 400 /* Okay, accept this stream */ | 402 /* Okay, accept this stream */ |
| 401 LOL(" .. accepted as mp3!!!\n"); | 403 LOL(" .. accepted as mp3!!!\n"); |
| 402 return 1; | 404 return 1; |
| 403 } else { | 405 } else { |
| 404 LOL(" .. match %d\n", chkcount); | 406 LOL(" .. match %d\n", chkcount); |
