diff options
Diffstat (limited to 'apps/metadata.c')
-rw-r--r-- | apps/metadata.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/metadata.c b/apps/metadata.c index fbe7bfc233..ae2a8ecda8 100644 --- a/apps/metadata.c +++ b/apps/metadata.c | |||
@@ -30,6 +30,7 @@ | |||
30 | #include "replaygain.h" | 30 | #include "replaygain.h" |
31 | #include "debug.h" | 31 | #include "debug.h" |
32 | #include "system.h" | 32 | #include "system.h" |
33 | #include "cuesheet.h" | ||
33 | 34 | ||
34 | enum tagtype { TAGTYPE_APE = 1, TAGTYPE_VORBIS }; | 35 | enum tagtype { TAGTYPE_APE = 1, TAGTYPE_VORBIS }; |
35 | 36 | ||
@@ -2272,6 +2273,11 @@ bool get_metadata(struct track_info* track, int fd, const char* trackname, | |||
2272 | 2273 | ||
2273 | /* We have successfully read the metadata from the file */ | 2274 | /* We have successfully read the metadata from the file */ |
2274 | 2275 | ||
2276 | if (cuesheet_is_enabled() && look_for_cuesheet_file(trackname)) | ||
2277 | { | ||
2278 | track->id3.cuesheet_type = 1; | ||
2279 | } | ||
2280 | |||
2275 | lseek(fd, 0, SEEK_SET); | 2281 | lseek(fd, 0, SEEK_SET); |
2276 | strncpy(track->id3.path, trackname, sizeof(track->id3.path)); | 2282 | strncpy(track->id3.path, trackname, sizeof(track->id3.path)); |
2277 | track->taginfo_ready = true; | 2283 | track->taginfo_ready = true; |