From edfff8a5efb1bca75f8b49c3ad3dd151653d39c8 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Thu, 10 Feb 2011 10:26:07 +0000 Subject: audio_peek_track should copy the struct mp3entry instead of pointing directly into the buffer. Despite the dire warning, caller does in fact yield/sleep and its usage is too nonlocalized to control that reliably. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29275 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/audio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/export/audio.h') diff --git a/firmware/export/audio.h b/firmware/export/audio.h index 34bcfb6..910791c 100644 --- a/firmware/export/audio.h +++ b/firmware/export/audio.h @@ -60,7 +60,7 @@ void audio_ff_rewind(long newpos); void audio_flush_and_reload_tracks(void); struct mp3entry* audio_current_track(void); struct mp3entry* audio_next_track(void); -bool audio_peek_track(struct mp3entry** id3, int offset); +bool audio_peek_track(struct mp3entry* id3, int offset); #ifdef HAVE_DISK_STORAGE void audio_set_buffer_margin(int setting); #endif -- cgit v1.1