summaryrefslogtreecommitdiff
path: root/apps/metadata.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/metadata.c')
-rw-r--r--apps/metadata.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/metadata.c b/apps/metadata.c
index 10c8877eb4..8fdd776323 100644
--- a/apps/metadata.c
+++ b/apps/metadata.c
@@ -1945,10 +1945,12 @@ static bool get_spc_metadata(int fd, struct mp3entry* id3)
1945 buf[31] = 0; 1945 buf[31] = 0;
1946 p = iso_decode(buf, p, 0, 32); 1946 p = iso_decode(buf, p, 0, 32);
1947 1947
1948#ifndef __PCTOOL__
1948 if (global_settings.repeat_mode!=REPEAT_ONE && length==0) { 1949 if (global_settings.repeat_mode!=REPEAT_ONE && length==0) {
1949 length=3*60*1000; /* 3 minutes */ 1950 length=3*60*1000; /* 3 minutes */
1950 fade=5*1000; /* 5 seconds */ 1951 fade=5*1000; /* 5 seconds */
1951 } 1952 }
1953#endif
1952 1954
1953 id3->length = length+fade; 1955 id3->length = length+fade;
1954 1956
@@ -2317,11 +2319,13 @@ bool get_metadata(struct track_info* track, int fd, const char* trackname,
2317 2319
2318 /* We have successfully read the metadata from the file */ 2320 /* We have successfully read the metadata from the file */
2319 2321
2322#ifndef __PCTOOL__
2320 if (cuesheet_is_enabled() && look_for_cuesheet_file(trackname)) 2323 if (cuesheet_is_enabled() && look_for_cuesheet_file(trackname))
2321 { 2324 {
2322 track->id3.cuesheet_type = 1; 2325 track->id3.cuesheet_type = 1;
2323 } 2326 }
2324 2327#endif
2328
2325 lseek(fd, 0, SEEK_SET); 2329 lseek(fd, 0, SEEK_SET);
2326 strncpy(track->id3.path, trackname, sizeof(track->id3.path)); 2330 strncpy(track->id3.path, trackname, sizeof(track->id3.path));
2327 track->taginfo_ready = true; 2331 track->taginfo_ready = true;