From fa20b4574762afa4cc51ec2d7647f1a213fe244f Mon Sep 17 00:00:00 2001 From: rtogni Date: Mon, 16 Jul 2007 20:25:23 +0000 Subject: [PATCH] realrtsp smil files can also use ' as field delimiter instead of " Fixes rtsp://video.rootvision.net/xxc17.smil git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23794 b3059339-0415-0410-9bf9-f77b7e298cf2 --- playtreeparser.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/playtreeparser.c b/playtreeparser.c index a9ebd35b1b..d8181904fd 100644 --- a/playtreeparser.c +++ b/playtreeparser.c @@ -532,8 +532,12 @@ parse_smil(play_tree_parser_t* p) { 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;