diff options
author | William Wilgus <wilgus.william@gmail.com> | 2022-03-11 22:52:02 -0500 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2022-03-11 22:52:02 -0500 |
commit | eecf8409896f90e9c8d49b7d0eea6b5799c90f07 (patch) | |
tree | d1afdbf838f10cb9f896e6217ae66053d482e296 | |
parent | a59b3c5d11d2baf8e3a333b4e3b85d29629bc8de (diff) | |
download | rockbox-eecf840989.tar.gz rockbox-eecf840989.zip |
playlist.c fix red for non-DIRCACHE targets
Change-Id: Id02f67dee6f40a80c832dea785f56f32885a5528
-rw-r--r-- | apps/playlist.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index 41cc1ce808..88a6869895 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -2138,11 +2138,14 @@ int playlist_resume(void) int result = -1; splash(0, ID2P(LANG_WAIT)); + if (core_allocatable() < (1 << 10)) + talk_buffer_set_policy(TALK_BUFFER_LOOSE); /* back off voice buffer */ + +#ifdef HAVE_DIRCACHE dircache_wait(); /* we need the dircache to use the files in the playlist */ +#endif /* use mp3 buffer for maximum load speed */ - if (core_allocatable() < (1 << 10)) - talk_buffer_set_policy(TALK_BUFFER_LOOSE); /* back off voice buffer */ handle = core_alloc_maximum("temp", &buflen, &buflib_ops_locked); if (handle < 0) { |