forked from len0rd/rockbox
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
This commit is contained in:
parent
97ec0a7e73
commit
a59b3c5d11
1 changed files with 3 additions and 1 deletions
|
|
@ -2137,6 +2137,9 @@ int playlist_resume(void)
|
||||||
bool sorted = true;
|
bool sorted = true;
|
||||||
int result = -1;
|
int result = -1;
|
||||||
|
|
||||||
|
splash(0, ID2P(LANG_WAIT));
|
||||||
|
dircache_wait(); /* we need the dircache to use the files in the playlist */
|
||||||
|
|
||||||
/* use mp3 buffer for maximum load speed */
|
/* use mp3 buffer for maximum load speed */
|
||||||
if (core_allocatable() < (1 << 10))
|
if (core_allocatable() < (1 << 10))
|
||||||
talk_buffer_set_policy(TALK_BUFFER_LOOSE); /* back off voice buffer */
|
talk_buffer_set_policy(TALK_BUFFER_LOOSE); /* back off voice buffer */
|
||||||
|
|
@ -2150,7 +2153,6 @@ int playlist_resume(void)
|
||||||
|
|
||||||
empty_playlist(playlist, true);
|
empty_playlist(playlist, true);
|
||||||
|
|
||||||
splash(0, ID2P(LANG_WAIT));
|
|
||||||
playlist->control_fd = open(playlist->control_filename, O_RDWR);
|
playlist->control_fd = open(playlist->control_filename, O_RDWR);
|
||||||
if (playlist->control_fd < 0)
|
if (playlist->control_fd < 0)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue