mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
check for .m3u extensions case insensitively
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1058 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d38ab69072
commit
9296dfb2c6
1 changed files with 2 additions and 2 deletions
|
@ -164,7 +164,7 @@ static int showdir(char *path, int start)
|
|||
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
if ( dircacheptr[i]->file ) {
|
||||
if(!strcmp(&dircacheptr[i]->name[len-4], ".m3u"))
|
||||
if(!strcasecmp(&dircacheptr[i]->name[len-4], ".m3u"))
|
||||
icon_type = Playlist;
|
||||
else
|
||||
icon_type=File;
|
||||
|
@ -295,7 +295,7 @@ bool dirbrowse(char *root)
|
|||
int len=strlen(dircacheptr[dircursor+start]->name);
|
||||
lcd_stop_scroll();
|
||||
if((len > 4) &&
|
||||
!strcmp(&dircacheptr[dircursor+start]->name[len-4],
|
||||
!strcasecmp(&dircacheptr[dircursor+start]->name[len-4],
|
||||
".m3u"))
|
||||
{
|
||||
playing = 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue