From b9c9d80fef2cee1ec0e2e44d75a9c2580ed00da3 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Mon, 21 Feb 2005 23:38:13 +0000 Subject: Recursive insert now works again git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6028 a1c6a512-1295-4272-9138-f99709370657 --- apps/playlist.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'apps/playlist.c') diff --git a/apps/playlist.c b/apps/playlist.c index 0bca7f4021..5e7f679800 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; -- cgit v1.2.3