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:
parent
1dc35774bf
commit
f19d17bbef
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue