diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2011-08-22 00:14:56 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2011-08-22 00:14:56 +0000 |
commit | c3e5625a7f86f263ca894fb31e4ae3cd54f8f3d3 (patch) | |
tree | bcb873c5f05f865f8b98bc77f21e4db8b73a4adb /apps | |
parent | 29b5b32c33397f8b8d4cef7a3ad27f212ea2ec1a (diff) | |
download | rockbox-c3e5625a7f86f263ca894fb31e4ae3cd54f8f3d3.tar.gz rockbox-c3e5625a7f86f263ca894fb31e4ae3cd54f8f3d3.zip |
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
Diffstat (limited to 'apps')
-rw-r--r-- | apps/playback.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) | |||
1183 | } | 1183 | } |
1184 | else if (bufreadid3(info->id3_hid, id3)) | 1184 | else if (bufreadid3(info->id3_hid, id3)) |
1185 | { | 1185 | { |
1186 | id3->cuesheet = NULL; | ||
1186 | return true; | 1187 | return true; |
1187 | } | 1188 | } |
1188 | 1189 | ||