mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
The playlist buffer was too small, causing all kinds of weird errors when playing large playlists
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3706 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
849469af28
commit
7f5ce80932
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ void playlist_init(void)
|
|||
{
|
||||
playlist.fd = -1;
|
||||
playlist.max_playlist_size = global_settings.max_files_in_playlist;
|
||||
playlist.indices = buffer_alloc(playlist.max_playlist_size);
|
||||
playlist.indices = buffer_alloc(playlist.max_playlist_size * sizeof(int));
|
||||
playlist.buffer_size =
|
||||
AVERAGE_FILENAME_LENGTH * global_settings.max_files_in_dir;
|
||||
playlist_buffer = buffer_alloc(playlist.buffer_size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue