# HG changeset patch # User rtogni # Date 1174253992 0 # Node ID c7eee1ecbe8cd6f4a8d6db6c2e17863dd99d9675 # Parent 8a0c3f356efafffdbc2b6f30ef0ff97bc3019ff4 Support multiple tags in a single line and tags on the same line as the signature. Fixes http://www.cartalk.com/Radio/Show/01.smil diff -r 8a0c3f356efa -r c7eee1ecbe8c playtreeparser.c --- a/playtreeparser.c Sun Mar 18 21:21:38 2007 +0000 +++ b/playtreeparser.c Sun Mar 18 21:39:52 2007 +0000 @@ -474,8 +474,9 @@ } //Get entries from smil + src_line = line; line = NULL; - while((src_line = play_tree_parser_get_line(p)) != NULL) { + do { strstrip(src_line); if (line) { free(line); @@ -516,26 +517,30 @@ for (j = i; line[j]; j++) line[j] = line[j+1]; } - if (line[0]=='\0') - continue; + pos = line; + while (pos) { if (!entrymode) { // all entries filled so far - if (strncasecmp(line," 511) { mp_msg(MSGT_PLAYTREE,MSGL_V,"Cannot store such a large source %s\n",line); - continue; + break; } strncpy(source,s_start,s_end-s_start); source[(s_end-s_start)]='\0'; // Null terminate @@ -546,9 +551,11 @@ else play_tree_append_entry(last_entry,entry); last_entry = entry; + pos = s_end; } } - } + } + } while((src_line = play_tree_parser_get_line(p)) != NULL); if (line) free(line);