summaryrefslogtreecommitdiff
path: root/apps/playback.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/playback.c')
-rw-r--r--apps/playback.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/playback.c b/apps/playback.c
index 1874430823..398f00da3b 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -577,7 +577,7 @@ struct mp3entry* audio_current_track(void)
577 if (cur_idx == track_ridx && *thistrack_id3->path) 577 if (cur_idx == track_ridx && *thistrack_id3->path)
578 { 578 {
579 /* The usual case */ 579 /* The usual case */
580 if (tracks[cur_idx].cuesheet_hid >= 0) 580 if (tracks[cur_idx].cuesheet_hid >= 0 && !thistrack_id3->cuesheet)
581 { 581 {
582 bufread(tracks[cur_idx].cuesheet_hid, sizeof(struct cuesheet), curr_cue); 582 bufread(tracks[cur_idx].cuesheet_hid, sizeof(struct cuesheet), curr_cue);
583 thistrack_id3->cuesheet = curr_cue; 583 thistrack_id3->cuesheet = curr_cue;
@@ -591,7 +591,7 @@ struct mp3entry* audio_current_track(void)
591 but the audio being played is still the same (now previous) track. 591 but the audio being played is still the same (now previous) track.
592 othertrack_id3.elapsed is being updated in an ISR by 592 othertrack_id3.elapsed is being updated in an ISR by
593 codec_pcmbuf_position_callback */ 593 codec_pcmbuf_position_callback */
594 if (tracks[cur_idx].cuesheet_hid >= 0) 594 if (tracks[cur_idx].cuesheet_hid >= 0 && !thistrack_id3->cuesheet)
595 { 595 {
596 bufread(tracks[cur_idx].cuesheet_hid, sizeof(struct cuesheet), curr_cue); 596 bufread(tracks[cur_idx].cuesheet_hid, sizeof(struct cuesheet), curr_cue);
597 othertrack_id3->cuesheet = curr_cue; 597 othertrack_id3->cuesheet = curr_cue;