diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-04-18 13:03:01 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-04-18 13:03:01 +0000 |
commit | 36a2e3087295385d15797f83120222ff71dc32bf (patch) | |
tree | 99ef6148d8b020396734f9c3dcfd520d730045f3 /apps/playlist.c | |
parent | f44f961812c059b69df19ac5bd828986ba10513f (diff) |
Move the inbuilt filetype info into filetypes.c and rename the defines.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13201 a1c6a512-1295-4272-9138-f99709370657
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 9d88e210f8..ba98648c2e 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -91,6 +91,7 @@ #include "dircache.h" #include "thread.h" #include "usb.h" +#include "filetypes.h" #ifdef HAVE_LCD_BITMAP #include "icons.h" #endif @@ -1536,7 +1537,7 @@ static int check_subdir_for_music(char *dir, char *subdir) { if (files[i].attr & ATTR_DIRECTORY) has_subdir = true; - else if ((files[i].attr & TREE_ATTR_MASK) == TREE_ATTR_MPA) + else if ((files[i].attr & FILE_ATTR_MASK) == FILE_ATTR_AUDIO) { has_music = true; break; @@ -3568,7 +3569,7 @@ int playlist_directory_tracksearch(const char* dirname, bool recurse, else continue; } - else if ((files[i].attr & TREE_ATTR_MASK) == TREE_ATTR_MPA) + else if ((files[i].attr & FILE_ATTR_MASK) == FILE_ATTR_AUDIO) { snprintf(buf, sizeof(buf), "%s/%s", dirname, files[i].name); |