# HG changeset patch # User rtogni # Date 1163190954 0 # Node ID e00250fc2b519f047762ebaa49e0cff81658437f # Parent 2e2b3abb2daddd7d5c20ac5edd23b54390f61a84 Skip empty lines in front of winamp playlist. Fixes http://www.radioseven.se/radioseven.pls diff -r 2e2b3abb2dad -r e00250fc2b51 playtreeparser.c --- a/playtreeparser.c Fri Nov 10 20:06:43 2006 +0000 +++ b/playtreeparser.c Fri Nov 10 20:35:54 2006 +0000 @@ -251,9 +251,13 @@ 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");