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
This commit is contained in:
Michael Sevakis 2011-08-22 00:14:56 +00:00
parent 29b5b32c33
commit c3e5625a7f

View file

@ -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;
}