path: root/apps/playlist.h
diff options
authorWilliam Wilgus <>2020-05-19 01:20:39 -0500
committerWilliam Wilgus <>2020-05-20 18:41:58 +0200
commit776ceae1198207e639408a8d0fa404f6a1ff7976 (patch)
treec5bde6aa64994e603bebe5c4709937d409c0fd7a /apps/playlist.h
parent0c3380f9efbbcfc3dfdb2551fa51458f7edc5a5c (diff)
Playlist Viewer Fix FS#13197
While playing a track the playlist viewer may not have a big enough temporary buffer to load and display 'max_files_in_playlist' entries This patch attempts to load as many entries as possible If tracks were already playing (dynamic playlist or otherwise) The original code only gave half the plugin buffer to a playlist loaded from file On some targets half the plugin buffer is not enough to load all entries… Now we attempt to get as many entries possible while at least leaving a small buffer (MAX_PATH) for the name buffer Change-Id: Ic06eaabc4e2550f076d625957d6d073790852743
Diffstat (limited to 'apps/playlist.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/playlist.h b/apps/playlist.h
index 6048001ff7..220a577fb2 100644
--- a/apps/playlist.h
+++ b/apps/playlist.h
@@ -181,6 +181,8 @@ char *playlist_name(const struct playlist_info* playlist, char *buf,
int buf_size);
char *playlist_get_name(const struct playlist_info* playlist, char *buf,
int buf_size);
+size_t playlist_get_required_bufsz(struct playlist_info* playlist,
+ bool include_namebuf, int num_indices);
int playlist_get_track_info(struct playlist_info* playlist, int index,
struct playlist_track_info* info);
int playlist_save(struct playlist_info* playlist, char *filename,