Mercurial > mplayer.hg
changeset 23774:16a67232e916
realrtsp smil files can also use ' as field delimiter instead of "
Fixes rtsp://video.rootvision.net/xxc17.smil
author | rtogni |
---|---|
date | Mon, 16 Jul 2007 20:25:23 +0000 |
parents | ac45c9bb49af |
children | 9837ca2c8f17 |
files | playtreeparser.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/playtreeparser.c Mon Jul 16 20:13:25 2007 +0000 +++ b/playtreeparser.c Mon Jul 16 20:25:23 2007 +0000 @@ -532,8 +532,12 @@ pos = strstr(pos,"src="); // Is source present on this line if (pos != NULL) { entrymode=0; + if (pos[4] != '"' && pos[4] != '\'') { + mp_msg(MSGT_PLAYTREE,MSGL_V,"Unknown delimiter %c in source line %s\n", pos[4], line); + break; + } s_start=pos+5; - s_end=strchr(s_start,'"'); + s_end=strchr(s_start,pos[4]); if (s_end == NULL) { mp_msg(MSGT_PLAYTREE,MSGL_V,"Error parsing this source line %s\n",line); break;