forked from len0rd/rockbox
fix FS#9796 - playlist resume from plugins didnt work
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20101 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
194fe0e6f0
commit
7f77dd8c26
1 changed files with 12 additions and 2 deletions
14
apps/tree.c
14
apps/tree.c
|
@ -477,11 +477,21 @@ static int update_dir(void)
|
||||||
/* load tracks from specified directory to resume play */
|
/* load tracks from specified directory to resume play */
|
||||||
void resume_directory(const char *dir)
|
void resume_directory(const char *dir)
|
||||||
{
|
{
|
||||||
|
int dirfilter = *tc.dirfilter;
|
||||||
|
int ret;
|
||||||
#ifdef HAVE_TAGCACHE
|
#ifdef HAVE_TAGCACHE
|
||||||
bool id3db = *tc.dirfilter == SHOW_ID3DB;
|
bool id3db = *tc.dirfilter == SHOW_ID3DB;
|
||||||
#endif
|
#endif
|
||||||
|
/* make sure the dirfilter is sane. The only time it should be possible
|
||||||
if (ft_load(&tc, dir) < 0)
|
* thats its not is when resume playlist is called from a plugin
|
||||||
|
*/
|
||||||
|
#ifdef HAVE_TAGCACHE
|
||||||
|
if (!id3db)
|
||||||
|
#endif
|
||||||
|
*tc.dirfilter = global_settings.dirfilter;
|
||||||
|
ret = ft_load(&tc, dir);
|
||||||
|
*tc.dirfilter = dirfilter;
|
||||||
|
if (ret < 0)
|
||||||
return;
|
return;
|
||||||
lastdir[0] = 0;
|
lastdir[0] = 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue