diff options
author | rtogni <rtogni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-07-16 20:25:23 +0000 |
---|---|---|
committer | rtogni <rtogni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-07-16 20:25:23 +0000 |
commit | fa20b4574762afa4cc51ec2d7647f1a213fe244f (patch) | |
tree | 7e6031a9c5ef68e0a640b14c5d1a6b2dfa2977b4 /playtreeparser.c | |
parent | ef4a583b720e7fb2db63567808b79700a3f7a618 (diff) | |
download | mpv-fa20b4574762afa4cc51ec2d7647f1a213fe244f.tar.bz2 mpv-fa20b4574762afa4cc51ec2d7647f1a213fe244f.tar.xz |
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
Diffstat (limited to 'playtreeparser.c')
-rw-r--r-- | playtreeparser.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; |