summaryrefslogtreecommitdiff
path: root/apps/playlist.c
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2003-12-07 16:57:43 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2003-12-07 16:57:43 +0000
commit8b813d0b99bcda14d6101ea38cc8ebb498281675 (patch)
tree7a5b616628fa8fdcb945923d0697669c80cee758 /apps/playlist.c
parent7b7fc1e95f9ac3336dcc7212dab06b06dd3e1e07 (diff)
table-driven internal handling of file types, so we can have many of them
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4115 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playlist.c')
-rw-r--r--apps/playlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 0843e937c4..ff6ef0ed37 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -468,7 +468,7 @@ static int add_directory_to_playlist(char *dirname, int *position, bool queue,
else
continue;
}
- else if (files[i].attr & TREE_ATTR_MPA)
+ else if ((files[i].attr & TREE_ATTR_MASK) == TREE_ATTR_MPA)
{
int insert_pos;