mirror of
https://github.com/mpv-player/mpv
synced 2024-12-16 20:05:07 +00:00
Skip empty lines in front of winamp playlist.
Fixes http://www.radioseven.se/radioseven.pls git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20850 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
46f877b6d4
commit
7e9859825e
@ -251,9 +251,13 @@ parse_pls(play_tree_parser_t* p) {
|
||||
play_tree_t *list = NULL, *entry = NULL, *last_entry = NULL;
|
||||
|
||||
mp_msg(MSGT_PLAYTREE,MSGL_V,"Trying Winamp playlist...\n");
|
||||
if (!(line = play_tree_parser_get_line(p)))
|
||||
while((line = play_tree_parser_get_line(p))) {
|
||||
strstrip(line);
|
||||
if(strlen(line))
|
||||
break;
|
||||
}
|
||||
if (!line)
|
||||
return NULL;
|
||||
strstrip(line);
|
||||
if(strcasecmp(line,"[playlist]"))
|
||||
return NULL;
|
||||
mp_msg(MSGT_PLAYTREE,MSGL_V,"Detected Winamp playlist format\n");
|
||||
|
Loading…
Reference in New Issue
Block a user