From c3e5625a7f86f263ca894fb31e4ae3cd54f8f3d3 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Mon, 22 Aug 2011 00:14:56 +0000 Subject: Fix FS#12234 - Simulator crashes when playing mp3 file with cuesheet. The cuesheet in a lookahead mp3entry should not be taken to be valid, since it won't be the cue for the current track. Be sure id3->cuesheet is set NULL if grabbing the info from the buffer. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30337 a1c6a512-1295-4272-9138-f99709370657 --- apps/playback.c | 1 + 1 file changed, 1 insertion(+) (limited to 'apps/playback.c') diff --git a/apps/playback.c b/apps/playback.c index 3f6ee71ad7..a38534a2da 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -1183,6 +1183,7 @@ static bool audio_get_track_metadata(int offset, struct mp3entry *id3) } else if (bufreadid3(info->id3_hid, id3)) { + id3->cuesheet = NULL; return true; } -- cgit v1.2.3