summaryrefslogtreecommitdiffstats
path: root/apps/playlist.h
diff options
context:
space:
mode:
authorMagnus Holmgren <magnushol@gmail.com>2010-08-11 19:01:50 +0000
committerMagnus Holmgren <magnushol@gmail.com>2010-08-11 19:01:50 +0000
commit113764d9c0dad33beab8ece9a9073c8648bd9da6 (patch)
tree3411fcb376adcbcb15ec3dc37bc95bb698af7ace /apps/playlist.h
parentde44ae7efcf907c8aa52475a7c0dd9f0da22045e (diff)
downloadrockbox-113764d9c0dad33beab8ece9a9073c8648bd9da6.tar.gz
rockbox-113764d9c0dad33beab8ece9a9073c8648bd9da6.tar.bz2
rockbox-113764d9c0dad33beab8ece9a9073c8648bd9da6.zip
Fix FS#11175. playlist_peek() wasn't thread safe (due to a static filename buffer), so frequent calls from the main thread would cause the audio thread to buffer the wrong track.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27773 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playlist.h')
-rw-r--r--apps/playlist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/playlist.h b/apps/playlist.h
index 3ff32c7682..fb30b7ac8c 100644
--- a/apps/playlist.h
+++ b/apps/playlist.h
@@ -127,7 +127,7 @@ int playlist_add(const char *filename);
int playlist_shuffle(int random_seed, int start_index);
void playlist_start(int start_index, int offset);
bool playlist_check(int steps);
-const char *playlist_peek(int steps);
+const char *playlist_peek(int steps, char* buf, size_t buf_size);
int playlist_next(int steps);
bool playlist_next_dir(int direction);
int playlist_get_resume_info(int *resume_index);