diff options
Diffstat (limited to 'apps/plugins/properties.c')
-rw-r--r-- | apps/plugins/properties.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/apps/plugins/properties.c b/apps/plugins/properties.c index 686b4d6d1a..4c172ff108 100644 --- a/apps/plugins/properties.c +++ b/apps/plugins/properties.c | |||
@@ -112,13 +112,9 @@ static bool file_properties(const char* selected_file) | |||
112 | 112 | ||
113 | num_properties = 5; | 113 | num_properties = 5; |
114 | 114 | ||
115 | #if (CONFIG_CODEC == SWCODEC) | ||
116 | int fd = rb->open(selected_file, O_RDONLY); | 115 | int fd = rb->open(selected_file, O_RDONLY); |
117 | if (fd >= 0 && | 116 | if (fd >= 0 && |
118 | rb->get_metadata(&id3, fd, selected_file)) | 117 | rb->get_metadata(&id3, fd, selected_file)) |
119 | #else | ||
120 | if (!rb->mp3info(&id3, selected_file)) | ||
121 | #endif | ||
122 | { | 118 | { |
123 | long dur = id3.length / 1000; /* seconds */ | 119 | long dur = id3.length / 1000; /* seconds */ |
124 | rb->snprintf(str_artist, sizeof str_artist, | 120 | rb->snprintf(str_artist, sizeof str_artist, |
@@ -145,9 +141,7 @@ static bool file_properties(const char* selected_file) | |||
145 | num_properties++; | 141 | num_properties++; |
146 | } | 142 | } |
147 | } | 143 | } |
148 | #if (CONFIG_CODEC == SWCODEC) | ||
149 | rb->close(fd); | 144 | rb->close(fd); |
150 | #endif | ||
151 | found = true; | 145 | found = true; |
152 | break; | 146 | break; |
153 | } | 147 | } |