Author: rtogni Date: Fri Nov 10 21:35:54 2006 New Revision: 20850 Modified: trunk/playtreeparser.c Log: Skip empty lines in front of winamp playlist. Fixes http://www.radioseven.se/radioseven.pls Modified: trunk/playtreeparser.c ============================================================================== --- trunk/playtreeparser.c (original) +++ trunk/playtreeparser.c Fri Nov 10 21:35:54 2006 @@ -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");
participants (1)
-
rtogni