summaryrefslogtreecommitdiff
path: root/apps/playlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/playlist.c')
-rw-r--r--apps/playlist.c23
1 files changed, 22 insertions, 1 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 6b35bb6c3f..a51e8f501c 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -1873,9 +1873,30 @@ int playlist_resume(void)
1873 char *str1 = NULL; 1873 char *str1 = NULL;
1874 char *str2 = NULL; 1874 char *str2 = NULL;
1875 char *str3 = NULL; 1875 char *str3 = NULL;
1876 1876 unsigned long last_tick = current_tick;
1877
1877 for(count=0; count<nread && !exit_loop; count++,p++) 1878 for(count=0; count<nread && !exit_loop; count++,p++)
1878 { 1879 {
1880 /* So a splash while we are loading. */
1881 if (current_tick - last_tick > HZ/4)
1882 {
1883 gui_syncsplash(0, true, str(LANG_LOADING_PERCENT),
1884 (total_read+count)*100/control_file_size,
1885#if CONFIG_KEYPAD == PLAYER_PAD
1886 str(LANG_STOP_ABORT)
1887#else
1888 str(LANG_OFF_ABORT)
1889#endif
1890 );
1891 if (SETTINGS_CANCEL == button_get(false))
1892 {
1893 /* FIXME:
1894 * Not sure how to implement this, somebody more familiar
1895 * with the code, please fix this. */
1896 }
1897 last_tick = current_tick;
1898 }
1899
1879 /* Are we on a new line? */ 1900 /* Are we on a new line? */
1880 if((*p == '\n') || (*p == '\r')) 1901 if((*p == '\n') || (*p == '\r'))
1881 { 1902 {