summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2022-03-11 22:30:39 -0500
committerWilliam Wilgus <wilgus.william@gmail.com>2022-03-11 22:30:39 -0500
commita59b3c5d11d2baf8e3a333b4e3b85d29629bc8de (patch)
tree0a7394a25ec1257967b1e9b3d833feabf486e9ca /apps
parent97ec0a7e7327c59ea9741933725ce0e4f4c8706c (diff)
downloadrockbox-a59b3c5d11d2baf8e3a333b4e3b85d29629bc8de.tar.gz
rockbox-a59b3c5d11d2baf8e3a333b4e3b85d29629bc8de.zip
playlist_resume, wait for dircache to complete before loading songs
with root redirect and even relative paths eventually we need the dircache to get files from the disk Change-Id: Ia443f473f09dd534674d5fdb71251214ce01eed7
Diffstat (limited to 'apps')
-rw-r--r--apps/playlist.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 320f0bab57..41cc1ce808 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -2137,6 +2137,9 @@ int playlist_resume(void)
2137 bool sorted = true; 2137 bool sorted = true;
2138 int result = -1; 2138 int result = -1;
2139 2139
2140 splash(0, ID2P(LANG_WAIT));
2141 dircache_wait(); /* we need the dircache to use the files in the playlist */
2142
2140 /* use mp3 buffer for maximum load speed */ 2143 /* use mp3 buffer for maximum load speed */
2141 if (core_allocatable() < (1 << 10)) 2144 if (core_allocatable() < (1 << 10))
2142 talk_buffer_set_policy(TALK_BUFFER_LOOSE); /* back off voice buffer */ 2145 talk_buffer_set_policy(TALK_BUFFER_LOOSE); /* back off voice buffer */
@@ -2150,7 +2153,6 @@ int playlist_resume(void)
2150 2153
2151 empty_playlist(playlist, true); 2154 empty_playlist(playlist, true);
2152 2155
2153 splash(0, ID2P(LANG_WAIT));
2154 playlist->control_fd = open(playlist->control_filename, O_RDWR); 2156 playlist->control_fd = open(playlist->control_filename, O_RDWR);
2155 if (playlist->control_fd < 0) 2157 if (playlist->control_fd < 0)
2156 { 2158 {