summaryrefslogtreecommitdiff
path: root/apps/metadata/spc.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/metadata/spc.c')
-rw-r--r--apps/metadata/spc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/metadata/spc.c b/apps/metadata/spc.c
index f1fcb81707..1c0206205d 100644
--- a/apps/metadata/spc.c
+++ b/apps/metadata/spc.c
@@ -35,7 +35,6 @@ bool get_spc_metadata(int fd, struct mp3entry* id3)
35{ 35{
36 /* Use the trackname part of the id3 structure as a temporary buffer */ 36 /* Use the trackname part of the id3 structure as a temporary buffer */
37 unsigned char * buf = (unsigned char *)id3->path; 37 unsigned char * buf = (unsigned char *)id3->path;
38 int read_bytes;
39 char * p; 38 char * p;
40 39
41 unsigned long length; 40 unsigned long length;
@@ -45,7 +44,7 @@ bool get_spc_metadata(int fd, struct mp3entry* id3)
45 44
46 /* try to get the ID666 tag */ 45 /* try to get the ID666 tag */
47 if ((lseek(fd, 0x2e, SEEK_SET) < 0) 46 if ((lseek(fd, 0x2e, SEEK_SET) < 0)
48 || ((read_bytes = read(fd, buf, 0xD2)) < 0xD2)) 47 || (read(fd, buf, 0xD2) < 0xD2))
49 { 48 {
50 DEBUGF("lseek or read failed\n"); 49 DEBUGF("lseek or read failed\n");
51 return false; 50 return false;
@@ -115,7 +114,7 @@ bool get_spc_metadata(int fd, struct mp3entry* id3)
115 114
116 id3->artist = p; 115 id3->artist = p;
117 buf[31] = 0; 116 buf[31] = 0;
118 p = iso_decode(buf, p, 0, 32); 117 iso_decode(buf, p, 0, 32);
119 118
120 if (length==0) { 119 if (length==0) {
121 length=3*60*1000; /* 3 minutes */ 120 length=3*60*1000; /* 3 minutes */