Fix bookmark resume for M3U8 playlists.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11020 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Magnus Holmgren 2006-09-21 18:57:54 +00:00
parent 1dc35774bf
commit f19d17bbef

View file

@ -1222,9 +1222,10 @@ void bookmark_play(char *resume_file, int index, int offset, int seed,
char *filename)
{
int i;
int len=strlen(resume_file);
char* suffix = strrchr(resume_file, '.');
if (!strcasecmp(&resume_file[len-4], ".m3u"))
if (suffix != NULL &&
(!strcasecmp(suffix, ".m3u") || !strcasecmp(suffix, ".m3u8")))
{
/* Playlist playback */
char* slash;