diff options
Diffstat (limited to 'apps/playlist.c')
-rw-r--r-- | apps/playlist.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index ceb38a4555..0843e937c4 100644 --- a/apps/playlist.c +++ b/apps/playlist.c | |||
@@ -410,10 +410,11 @@ static int add_directory_to_playlist(char *dirname, int *position, bool queue, | |||
410 | int num_files = 0; | 410 | int num_files = 0; |
411 | bool buffer_full = false; | 411 | bool buffer_full = false; |
412 | int i; | 412 | int i; |
413 | int dirfilter = SHOW_ALL; | ||
413 | struct entry *files; | 414 | struct entry *files; |
414 | 415 | ||
415 | /* use the tree browser dircache to load files */ | 416 | /* use the tree browser dircache to load files */ |
416 | files = load_and_sort_directory(dirname, SHOW_ALL, &num_files, | 417 | files = load_and_sort_directory(dirname, &dirfilter, &num_files, |
417 | &buffer_full); | 418 | &buffer_full); |
418 | 419 | ||
419 | if(!files) | 420 | if(!files) |
@@ -456,7 +457,7 @@ static int add_directory_to_playlist(char *dirname, int *position, bool queue, | |||
456 | break; | 457 | break; |
457 | 458 | ||
458 | /* we now need to reload our current directory */ | 459 | /* we now need to reload our current directory */ |
459 | files = load_and_sort_directory(dirname, SHOW_ALL, &num_files, | 460 | files = load_and_sort_directory(dirname, &dirfilter, &num_files, |
460 | &buffer_full); | 461 | &buffer_full); |
461 | if (!files) | 462 | if (!files) |
462 | { | 463 | { |