diff options
-rw-r--r-- | playtreeparser.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/playtreeparser.c b/playtreeparser.c index 3beae049c2..4786747481 100644 --- a/playtreeparser.c +++ b/playtreeparser.c @@ -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"); |