summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/playlist.c4
-rw-r--r--apps/playlist.h2
-rw-r--r--apps/playlist_catalog.c1
3 files changed, 3 insertions, 4 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 9cbda3f991..cdcc0594c2 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -136,8 +136,6 @@
#define PLAYLIST_QUEUED 0x20000000
#define PLAYLIST_SKIPPED 0x10000000
-#define PLAYLIST_DISPLAY_COUNT 10
-
struct directory_search_context {
struct playlist_info* playlist;
int position;
@@ -2040,7 +2038,7 @@ int playlist_resume(void)
for(count=0; count<nread && !exit_loop && !useraborted; count++,p++)
{
/* So a splash while we are loading. */
- if (current_tick - last_tick > HZ/4)
+ if (TIME_AFTER(current_tick, last_tick + HZ/4))
{
splashf(0, str(LANG_LOADING_PERCENT),
(total_read+count)*100/control_file_size,
diff --git a/apps/playlist.h b/apps/playlist.h
index bca98e47ae..345417a29a 100644
--- a/apps/playlist.h
+++ b/apps/playlist.h
@@ -32,6 +32,8 @@
#define PLAYLIST_ATTR_SKIPPED 0x04
#define PLAYLIST_MAX_CACHE 16
+#define PLAYLIST_DISPLAY_COUNT 10
+
#define DEFAULT_DYNAMIC_PLAYLIST_NAME "/dynamic.m3u8"
enum playlist_command {
diff --git a/apps/playlist_catalog.c b/apps/playlist_catalog.c
index ef2c1d13d5..7daae15552 100644
--- a/apps/playlist_catalog.c
+++ b/apps/playlist_catalog.c
@@ -46,7 +46,6 @@
#include "talk.h"
#define MAX_PLAYLISTS 400
-#define PLAYLIST_DISPLAY_COUNT 10
/* Use for recursive directory search */
struct add_track_context {