summaryrefslogtreecommitdiff
path: root/junklib.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-09-17 19:36:31 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-09-17 19:36:31 +0200
commit3c0e734fe7215692009fda08a40c99d89a5bd40f (patch)
tree652f90251ebf001b65960539a67968fa1529ef05 /junklib.c
parent761aae931b03099118720a01f0ec41b09ccc8acc (diff)
mp3 gapless playback WIP
Diffstat (limited to 'junklib.c')
-rw-r--r--junklib.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/junklib.c b/junklib.c
index 43bf6668..822d9794 100644
--- a/junklib.c
+++ b/junklib.c
@@ -482,9 +482,10 @@ junk_read_id3v1 (playItem_t *it, FILE *fp) {
pl_add_meta (it, "track", s);
}
- if (it->endoffset < 128) {
- it->endoffset = 128;
- }
+// FIXME: that should be accounted for
+// if (it->endoffset < 128) {
+// it->endoffset = 128;
+// }
return 0;
}
@@ -678,11 +679,11 @@ junk_read_id3v2 (playItem_t *it, FILE *fp) {
return -1; // bad header
}
uint32_t size = (header[9] << 0) | (header[8] << 7) | (header[7] << 14) | (header[6] << 21);
- int startoffset = size + 10 + 10 * footerpresent;
- if (startoffset > it->startoffset) {
- it->startoffset = startoffset;
-// fprintf (stderr, "id3v2 end: %x\n", startoffset);
- }
+ // FIXME: that should be accounted for
+// int startoffset = size + 10 + 10 * footerpresent;
+// if (startoffset > it->startoffset) {
+// it->startoffset = startoffset;
+// }
// fprintf (stderr, "tag size: %d\n", size);