diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2009-02-25 05:41:31 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2009-02-25 05:41:31 +0000 |
commit | 7f77dd8c265e4e6f5dba53eeb125736f411453a2 (patch) | |
tree | 4cb42436daba73f3fcbfdfa60beff647aab2cb7f /apps/tree.c | |
parent | 194fe0e6f02586bd4bab87f34feb46927fa1ea38 (diff) | |
download | rockbox-7f77dd8c265e4e6f5dba53eeb125736f411453a2.tar.gz rockbox-7f77dd8c265e4e6f5dba53eeb125736f411453a2.zip |
fix FS#9796 - playlist resume from plugins didnt work
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20101 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
-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 | ||