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, 2 insertions, 4 deletions
diff --git a/apps/playback.c b/apps/playback.c
index abc2e9ef30..25dec7a9ff 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -2762,13 +2762,11 @@ static bool audio_load_track(int offset, bool start_play, bool rebuffer)
2762 if (cuesheet_is_enabled() && tracks[track_widx].id3.cuesheet_type == 1) 2762 if (cuesheet_is_enabled() && tracks[track_widx].id3.cuesheet_type == 1)
2763 { 2763 {
2764 char cuepath[MAX_PATH]; 2764 char cuepath[MAX_PATH];
2765 strncpy(cuepath, trackname, MAX_PATH);
2766 char *dot = strrchr(cuepath, '.');
2767 strcpy(dot, ".cue");
2768 2765
2769 struct cuesheet *cue = start_play ? curr_cue : temp_cue; 2766 struct cuesheet *cue = start_play ? curr_cue : temp_cue;
2770 2767
2771 if (parse_cuesheet(cuepath, cue)) 2768 if (look_for_cuesheet_file(trackname, cuepath) &&
2769 parse_cuesheet(cuepath, cue))
2772 { 2770 {
2773 strcpy((cue)->audio_filename, trackname); 2771 strcpy((cue)->audio_filename, trackname);
2774 if (start_play) 2772 if (start_play)