diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-06-18 08:23:07 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-06-18 08:23:07 +0000 |
commit | 9296dfb2c69662a738f326d3dbc49e0fc5c73b05 (patch) | |
tree | 60c06327ef0bf1af8aeff881d9601b35f9d1806c /apps/tree.c | |
parent | d38ab690727f51ac9eb38631961184d5768cfcf5 (diff) | |
download | rockbox-9296dfb2c69662a738f326d3dbc49e0fc5c73b05.tar.gz rockbox-9296dfb2c69662a738f326d3dbc49e0fc5c73b05.zip |
check for .m3u extensions case insensitively
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1058 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
-rw-r--r-- | apps/tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/tree.c b/apps/tree.c index e44d66d102..2392a667d1 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -164,7 +164,7 @@ static int showdir(char *path, int start) | |||
164 | 164 | ||
165 | #ifdef HAVE_LCD_BITMAP | 165 | #ifdef HAVE_LCD_BITMAP |
166 | if ( dircacheptr[i]->file ) { | 166 | if ( dircacheptr[i]->file ) { |
167 | if(!strcmp(&dircacheptr[i]->name[len-4], ".m3u")) | 167 | if(!strcasecmp(&dircacheptr[i]->name[len-4], ".m3u")) |
168 | icon_type = Playlist; | 168 | icon_type = Playlist; |
169 | else | 169 | else |
170 | icon_type=File; | 170 | icon_type=File; |
@@ -295,7 +295,7 @@ bool dirbrowse(char *root) | |||
295 | int len=strlen(dircacheptr[dircursor+start]->name); | 295 | int len=strlen(dircacheptr[dircursor+start]->name); |
296 | lcd_stop_scroll(); | 296 | lcd_stop_scroll(); |
297 | if((len > 4) && | 297 | if((len > 4) && |
298 | !strcmp(&dircacheptr[dircursor+start]->name[len-4], | 298 | !strcasecmp(&dircacheptr[dircursor+start]->name[len-4], |
299 | ".m3u")) | 299 | ".m3u")) |
300 | { | 300 | { |
301 | playing = 2; | 301 | playing = 2; |