summaryrefslogtreecommitdiff
path: root/apps/playlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/playlist.c')
-rw-r--r--apps/playlist.c8
1 files changed, 7 insertions, 1 deletions
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,
586 break; 586 break;
587 587
588 /* we now need to reload our current directory */ 588 /* we now need to reload our current directory */
589 num_files = ft_load(tc, dirname); 589 if(ft_load(tc, dirname) < 0)
590 {
591 result = -1;
592 break;
593 }
594
590 files = (struct entry*) tc->dircache; 595 files = (struct entry*) tc->dircache;
596 num_files = tc->filesindir;
591 if (!num_files) 597 if (!num_files)
592 { 598 {
593 result = -1; 599 result = -1;