diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-02-21 23:38:13 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-02-21 23:38:13 +0000 |
| commit | b9c9d80fef2cee1ec0e2e44d75a9c2580ed00da3 (patch) | |
| tree | da2f66257860de79125d702aa176161bb6b1aa6b | |
| parent | 32791cf796ea8a155fe8e02fd437d2f39530ca35 (diff) | |
| download | rockbox-b9c9d80fef2cee1ec0e2e44d75a9c2580ed00da3.zip rockbox-b9c9d80fef2cee1ec0e2e44d75a9c2580ed00da3.tar.gz rockbox-b9c9d80fef2cee1ec0e2e44d75a9c2580ed00da3.tar.bz2 rockbox-b9c9d80fef2cee1ec0e2e44d75a9c2580ed00da3.tar.xz | |
Recursive insert now works again
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6028 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/playlist.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index 0bca7f4..5e7f679 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -586,8 +586,14 @@ static int add_directory_to_playlist(struct playlist_info* playlist, break; /* we now need to reload our current directory */ - num_files = ft_load(tc, dirname); + if(ft_load(tc, dirname) < 0) + { + result = -1; + break; + } + files = (struct entry*) tc->dircache; + num_files = tc->filesindir; if (!num_files) { result = -1; |