summaryrefslogtreecommitdiff
path: root/apps/playlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/playlist.c')
-rw-r--r--apps/playlist.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 692ec4b989..0cb9d09f32 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -29,6 +29,7 @@
29#include "kernel.h" 29#include "kernel.h"
30#include "settings.h" 30#include "settings.h"
31#include "status.h" 31#include "status.h"
32#include "applimits.h"
32 33
33#ifdef HAVE_LCD_BITMAP 34#ifdef HAVE_LCD_BITMAP
34#define LINE_Y (global_settings.statusbar&&statusbar_enabled?1:0) /* Y position the entry-list starts at */ 35#define LINE_Y (global_settings.statusbar&&statusbar_enabled?1:0) /* Y position the entry-list starts at */
@@ -38,7 +39,7 @@
38 39
39playlist_info_t playlist; 40playlist_info_t playlist;
40 41
41#define PLAYLIST_BUFFER_SIZE (MAX_PATH*200) 42#define PLAYLIST_BUFFER_SIZE (AVERAGE_FILENAME_LENGTH*MAX_FILES_IN_DIR)
42 43
43unsigned char playlist_buffer[PLAYLIST_BUFFER_SIZE]; 44unsigned char playlist_buffer[PLAYLIST_BUFFER_SIZE];
44static int playlist_end_pos = 0; 45static int playlist_end_pos = 0;
@@ -293,8 +294,8 @@ void add_indices_to_playlist(void)
293 close(fd); 294 close(fd);
294 295
295 lcd_clear_display(); 296 lcd_clear_display();
296 lcd_puts(0,0,"10000 file"); 297 lcd_puts(0,0,"Playlist");
297 lcd_puts(0,1,"limit reached"); 298 lcd_puts(0,1,"buffer full");
298 lcd_update(); 299 lcd_update();
299 sleep(HZ*2); 300 sleep(HZ*2);
300 lcd_clear_display(); 301 lcd_clear_display();