summaryrefslogtreecommitdiff
path: root/apps/playback.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/playback.c')
-rw-r--r--apps/playback.c6
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) */