summaryrefslogtreecommitdiffstats
path: root/apps/plugins/test_codec.c
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-09-02 12:10:37 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-09-02 12:10:37 +0000
commita92d3169724cef786d3fda92de8858c6128990f8 (patch)
treef9eadf79d95960adb08e727107f9e48f892d6929 /apps/plugins/test_codec.c
parent2e1988b263428d998cde8671eadce92de3f95188 (diff)
downloadrockbox-a92d3169724cef786d3fda92de8858c6128990f8.tar.gz
rockbox-a92d3169724cef786d3fda92de8858c6128990f8.zip
fix test_codec broken after r27968
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27985 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/test_codec.c')
-rw-r--r--apps/plugins/test_codec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/test_codec.c b/apps/plugins/test_codec.c
index 94c510afef..0c2e694eb9 100644
--- a/apps/plugins/test_codec.c
+++ b/apps/plugins/test_codec.c
@@ -902,7 +902,8 @@ show_menu:
if (dir) {
entry = rb->readdir(dir);
while (entry) {
- if (!(entry->attribute & ATTR_DIRECTORY)) {
+ struct dirinfo info = rb->dir_get_info(dir, entry);
+ if (!(info.attribute & ATTR_DIRECTORY)) {
rb->snprintf(filename,sizeof(filename),"%s%s",dirpath,entry->d_name);
test_track(filename);
log_text("", true);