summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/playlist.c6
-rw-r--r--apps/playlist.h1
-rw-r--r--apps/wps-display.c2
-rw-r--r--apps/wps.c2
4 files changed, 6 insertions, 5 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 8483d70293..1e5c12a181 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -37,14 +37,14 @@
37 37
38#include "lang.h" 38#include "lang.h"
39 39
40struct playlist_info playlist; 40static struct playlist_info playlist;
41 41
42#define PLAYLIST_BUFFER_SIZE (AVERAGE_FILENAME_LENGTH*MAX_FILES_IN_DIR) 42#define PLAYLIST_BUFFER_SIZE (AVERAGE_FILENAME_LENGTH*MAX_FILES_IN_DIR)
43 43
44unsigned char playlist_buffer[PLAYLIST_BUFFER_SIZE]; 44static unsigned char playlist_buffer[PLAYLIST_BUFFER_SIZE];
45static int playlist_end_pos = 0; 45static int playlist_end_pos = 0;
46 46
47char now_playing[MAX_PATH+1]; 47static char now_playing[MAX_PATH+1];
48 48
49void playlist_clear(void) 49void playlist_clear(void)
50{ 50{
diff --git a/apps/playlist.h b/apps/playlist.h
index 9f66b7f49e..24f9d7df6f 100644
--- a/apps/playlist.h
+++ b/apps/playlist.h
@@ -52,5 +52,6 @@ void empty_playlist(void);
52void add_indices_to_playlist(void); 52void add_indices_to_playlist(void);
53void playlist_clear(void); 53void playlist_clear(void);
54int playlist_add(char *filename); 54int playlist_add(char *filename);
55int playlist_amount(void);
55 56
56#endif /* __PLAYLIST_H__ */ 57#endif /* __PLAYLIST_H__ */
diff --git a/apps/wps-display.c b/apps/wps-display.c
index b1a67884df..2972fc0a33 100644
--- a/apps/wps-display.c
+++ b/apps/wps-display.c
@@ -313,7 +313,7 @@ static char* get_tag(struct mp3entry* id3,
313 return buf; 313 return buf;
314 314
315 case 'e': /* Playlist Total Entries */ 315 case 'e': /* Playlist Total Entries */
316 snprintf(buf, buf_size, "%d", playlist.amount); 316 snprintf(buf, buf_size, "%d", playlist_amount());
317 return buf; 317 return buf;
318 318
319 case 'c': /* Current Time in Song */ 319 case 'c': /* Current Time in Song */
diff --git a/apps/wps.c b/apps/wps.c
index e501381e4c..d2e89adff5 100644
--- a/apps/wps.c
+++ b/apps/wps.c
@@ -220,7 +220,7 @@ static int browse_id3(void)
220 case 5: 220 case 5:
221 lcd_puts(0, 0, str(LANG_ID3_PLAYLIST)); 221 lcd_puts(0, 0, str(LANG_ID3_PLAYLIST));
222 snprintf(scroll_text,sizeof(scroll_text), "%d/%d", 222 snprintf(scroll_text,sizeof(scroll_text), "%d/%d",
223 id3->index + 1, playlist.amount); 223 id3->index + 1, playlist_amount());
224 lcd_puts_scroll(0, 1, scroll_text); 224 lcd_puts_scroll(0, 1, scroll_text);
225 break; 225 break;
226 226