forked from len0rd/rockbox
Do not crash when resuming playback.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9464 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
38385a5284
commit
a99bc99b66
1 changed files with 5 additions and 0 deletions
|
|
@ -364,11 +364,16 @@ static int update_dir(void)
|
|||
/* load tracks from specified directory to resume play */
|
||||
void resume_directory(const char *dir)
|
||||
{
|
||||
bool id3db = *tc.dirfilter == SHOW_ID3DB;
|
||||
|
||||
if (ft_load(&tc, dir) < 0)
|
||||
return;
|
||||
lastdir[0] = 0;
|
||||
|
||||
ft_build_playlist(&tc, 0);
|
||||
|
||||
if (id3db)
|
||||
tagtree_load(&tc);
|
||||
}
|
||||
|
||||
/* Returns the current working directory and also writes cwd to buf if
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue