1
0
Fork 0
forked from len0rd/rockbox

FS #12419 : Support for embedded cuesheets.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31321 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Nick Peskett 2011-12-16 10:09:41 +00:00
parent 014003afac
commit 02fd314a0b
9 changed files with 192 additions and 44 deletions

View file

@ -2170,10 +2170,10 @@ struct mp3entry* audio_current_track(void)
if (!checked_for_cuesheet && curr_cuesheet && id3->cuesheet == NULL)
{
checked_for_cuesheet = true; /* only check once per track */
char cuepath[MAX_PATH];
struct cuesheet_file cue_file;
if (look_for_cuesheet_file(id3->path, cuepath) &&
parse_cuesheet(cuepath, curr_cuesheet))
if (look_for_cuesheet_file(id3, &cue_file)) &&
parse_cuesheet(&cue_file, curr_cuesheet))
{
id3->cuesheet = curr_cuesheet;
}