From 02fd314a0b426d6d445e2c9b167681ade6b0c1d2 Mon Sep 17 00:00:00 2001 From: Nick Peskett Date: Fri, 16 Dec 2011 10:09:41 +0000 Subject: FS #12419 : Support for embedded cuesheets. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31321 a1c6a512-1295-4272-9138-f99709370657 --- apps/playback.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/playback.c') diff --git a/apps/playback.c b/apps/playback.c index 2739118aeb..36fbd88832 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -1485,12 +1485,12 @@ static bool audio_load_cuesheet(struct track_info *info, /* If error other than a full buffer, then mark it "unsupported" to avoid reloading attempt */ int hid = ERR_UNSUPPORTED_TYPE; - char cuepath[MAX_PATH]; + struct cuesheet_file cue_file; #ifdef HAVE_IO_PRIORITY buf_back_off_storage(true); #endif - if (look_for_cuesheet_file(track_id3->path, cuepath)) + if (look_for_cuesheet_file(track_id3, &cue_file)) { hid = bufalloc(NULL, sizeof (struct cuesheet), TYPE_CUESHEET); @@ -1499,7 +1499,7 @@ static bool audio_load_cuesheet(struct track_info *info, void *cuesheet = NULL; bufgetdata(hid, sizeof (struct cuesheet), &cuesheet); - if (parse_cuesheet(cuepath, (struct cuesheet *)cuesheet)) + if (parse_cuesheet(&cue_file, (struct cuesheet *)cuesheet)) { /* Indicate cuesheet is present (while track remains buffered) */ -- cgit v1.2.3