summaryrefslogtreecommitdiffstats
path: root/playtreeparser.c
diff options
context:
space:
mode:
authorrtogni <rtogni@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-16 20:25:23 +0000
committerrtogni <rtogni@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-16 20:25:23 +0000
commitfa20b4574762afa4cc51ec2d7647f1a213fe244f (patch)
tree7e6031a9c5ef68e0a640b14c5d1a6b2dfa2977b4 /playtreeparser.c
parentef4a583b720e7fb2db63567808b79700a3f7a618 (diff)
downloadmpv-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.c6
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;