diff options
Diffstat (limited to 'apps/metadata/adx.c')
-rw-r--r-- | apps/metadata/adx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/metadata/adx.c b/apps/metadata/adx.c index a903a6d053..4e18254d79 100644 --- a/apps/metadata/adx.c +++ b/apps/metadata/adx.c | |||
@@ -34,12 +34,12 @@ bool get_adx_metadata(int fd, struct mp3entry* id3) | |||
34 | { | 34 | { |
35 | /* Use the trackname part of the id3 structure as a temporary buffer */ | 35 | /* Use the trackname part of the id3 structure as a temporary buffer */ |
36 | unsigned char * buf = (unsigned char *)id3->path; | 36 | unsigned char * buf = (unsigned char *)id3->path; |
37 | int chanstart, channels, read_bytes; | 37 | int chanstart, channels; |
38 | int looping = 0, start_adr = 0, end_adr = 0; | 38 | int looping = 0, start_adr = 0, end_adr = 0; |
39 | 39 | ||
40 | /* try to get the basic header */ | 40 | /* try to get the basic header */ |
41 | if ((lseek(fd, 0, SEEK_SET) < 0) | 41 | if ((lseek(fd, 0, SEEK_SET) < 0) |
42 | || ((read_bytes = read(fd, buf, 0x38)) < 0x38)) | 42 | || (read(fd, buf, 0x38) < 0x38)) |
43 | { | 43 | { |
44 | DEBUGF("lseek or read failed\n"); | 44 | DEBUGF("lseek or read failed\n"); |
45 | return false; | 45 | return false; |
@@ -106,7 +106,7 @@ bool get_adx_metadata(int fd, struct mp3entry* id3) | |||
106 | 106 | ||
107 | /* try to get the channel header */ | 107 | /* try to get the channel header */ |
108 | if ((lseek(fd, chanstart-6, SEEK_SET) < 0) | 108 | if ((lseek(fd, chanstart-6, SEEK_SET) < 0) |
109 | || ((read_bytes = read(fd, buf, 6)) < 6)) | 109 | || (read(fd, buf, 6) < 6)) |
110 | { | 110 | { |
111 | return false; | 111 | return false; |
112 | } | 112 | } |