mirror of
https://github.com/mpv-player/mpv
synced 2025-03-20 10:17:31 +00:00
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
This commit is contained in:
parent
ef4a583b72
commit
fa20b45747
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user