diff options
-rw-r--r-- | apps/tree.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/apps/tree.c b/apps/tree.c index 1f0b78b098..6eb64a55a6 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -477,11 +477,21 @@ static int update_dir(void) | |||
477 | /* load tracks from specified directory to resume play */ | 477 | /* load tracks from specified directory to resume play */ |
478 | void resume_directory(const char *dir) | 478 | void resume_directory(const char *dir) |
479 | { | 479 | { |
480 | int dirfilter = *tc.dirfilter; | ||
481 | int ret; | ||
480 | #ifdef HAVE_TAGCACHE | 482 | #ifdef HAVE_TAGCACHE |
481 | bool id3db = *tc.dirfilter == SHOW_ID3DB; | 483 | bool id3db = *tc.dirfilter == SHOW_ID3DB; |
482 | #endif | 484 | #endif |
483 | 485 | /* make sure the dirfilter is sane. The only time it should be possible | |
484 | if (ft_load(&tc, dir) < 0) | 486 | * thats its not is when resume playlist is called from a plugin |
487 | */ | ||
488 | #ifdef HAVE_TAGCACHE | ||
489 | if (!id3db) | ||
490 | #endif | ||
491 | *tc.dirfilter = global_settings.dirfilter; | ||
492 | ret = ft_load(&tc, dir); | ||
493 | *tc.dirfilter = dirfilter; | ||
494 | if (ret < 0) | ||
485 | return; | 495 | return; |
486 | lastdir[0] = 0; | 496 | lastdir[0] = 0; |
487 | 497 | ||