summaryrefslogtreecommitdiffstats
path: root/playtreeparser.c
diff options
context:
space:
mode:
authorrtogni <rtogni@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-03-12 21:45:51 +0000
committerrtogni <rtogni@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-03-12 21:45:51 +0000
commit92cbcb73112b6c4ae85f072d5627ca7f0a189781 (patch)
tree7735bc9eb67e8540a80cebf19aeb8465f7e802a6 /playtreeparser.c
parent36a80a348e83f3613f3886c37bbe04724a3779fe (diff)
downloadmpv-92cbcb73112b6c4ae85f072d5627ca7f0a189781.tar.bz2
mpv-92cbcb73112b6c4ae85f072d5627ca7f0a189781.tar.xz
Support smil embedded into xml, fixes bugzilla #768
Patch by Pavel Fedin | sonic_amiga |a| rambler : ru | (on bugzilla) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22536 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'playtreeparser.c')
-rw-r--r--playtreeparser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/playtreeparser.c b/playtreeparser.c
index 2af90ba2fb..8debc1605a 100644
--- a/playtreeparser.c
+++ b/playtreeparser.c
@@ -447,6 +447,8 @@ parse_smil(play_tree_parser_t* p) {
strstrip(line);
if(line[0] == '\0') // Ignore empties
continue;
+ if (strncasecmp(line,"<?xml",5)==0) // smil in xml
+ continue;
if (strncasecmp(line,"<smil",5)==0 || strncasecmp(line,"<?wpl",5)==0 ||
strncasecmp(line,"(smil-document",14)==0)
break; // smil header found