diff options
author | Nick Peskett <rockbox@peskett.co.uk> | 2011-12-16 10:09:41 +0000 |
---|---|---|
committer | Nick Peskett <rockbox@peskett.co.uk> | 2011-12-16 10:09:41 +0000 |
commit | 02fd314a0b426d6d445e2c9b167681ade6b0c1d2 (patch) | |
tree | ad6100925dadaae0a69b8ec87b03eb8c1c5b23ab /apps/playback.c | |
parent | 014003afac4e6ab5f132df25e0e92106ed21607a (diff) | |
download | rockbox-02fd314a0b426d6d445e2c9b167681ade6b0c1d2.tar.gz rockbox-02fd314a0b426d6d445e2c9b167681ade6b0c1d2.zip |
FS #12419 : Support for embedded cuesheets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31321 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playback.c')
-rw-r--r-- | apps/playback.c | 6 |
1 files changed, 3 insertions, 3 deletions
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, | |||
1485 | /* If error other than a full buffer, then mark it "unsupported" to | 1485 | /* If error other than a full buffer, then mark it "unsupported" to |
1486 | avoid reloading attempt */ | 1486 | avoid reloading attempt */ |
1487 | int hid = ERR_UNSUPPORTED_TYPE; | 1487 | int hid = ERR_UNSUPPORTED_TYPE; |
1488 | char cuepath[MAX_PATH]; | 1488 | struct cuesheet_file cue_file; |
1489 | 1489 | ||
1490 | #ifdef HAVE_IO_PRIORITY | 1490 | #ifdef HAVE_IO_PRIORITY |
1491 | buf_back_off_storage(true); | 1491 | buf_back_off_storage(true); |
1492 | #endif | 1492 | #endif |
1493 | if (look_for_cuesheet_file(track_id3->path, cuepath)) | 1493 | if (look_for_cuesheet_file(track_id3, &cue_file)) |
1494 | { | 1494 | { |
1495 | hid = bufalloc(NULL, sizeof (struct cuesheet), TYPE_CUESHEET); | 1495 | hid = bufalloc(NULL, sizeof (struct cuesheet), TYPE_CUESHEET); |
1496 | 1496 | ||
@@ -1499,7 +1499,7 @@ static bool audio_load_cuesheet(struct track_info *info, | |||
1499 | void *cuesheet = NULL; | 1499 | void *cuesheet = NULL; |
1500 | bufgetdata(hid, sizeof (struct cuesheet), &cuesheet); | 1500 | bufgetdata(hid, sizeof (struct cuesheet), &cuesheet); |
1501 | 1501 | ||
1502 | if (parse_cuesheet(cuepath, (struct cuesheet *)cuesheet)) | 1502 | if (parse_cuesheet(&cue_file, (struct cuesheet *)cuesheet)) |
1503 | { | 1503 | { |
1504 | /* Indicate cuesheet is present (while track remains | 1504 | /* Indicate cuesheet is present (while track remains |
1505 | buffered) */ | 1505 | buffered) */ |