Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
0601ce56
Commit
0601ce56
authored
Jun 27, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xspf: silently skip unknown extension nodes (fix #3696)
parent
bfe5bcce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
modules/demux/playlist/xspf.c
modules/demux/playlist/xspf.c
+18
-1
No files found.
modules/demux/playlist/xspf.c
View file @
0601ce56
...
...
@@ -738,11 +738,28 @@ static bool parse_extension_node COMPLEX_INTERFACE
msg_Warn
(
p_demux
,
"<extension> requires
\"
application
\"
attribute"
);
return
false
;
}
/* Skip the extension if the application is not vlc
This will skip all children of the current node */
else
if
(
strcmp
(
psz_application
,
"http://www.videolan.org/vlc/playlist/0"
)
)
{
msg_Dbg
(
p_demux
,
"Skipping
\"
%s
\"
extension tag"
,
psz_application
);
free
(
psz_application
);
return
false
;
/* Skip all children */
while
(
xml_ReaderRead
(
p_xml_reader
)
==
1
)
{
if
(
xml_ReaderNodeType
(
p_xml_reader
)
==
XML_READER_ENDELEM
)
{
char
*
psz_name
=
xml_ReaderName
(
p_xml_reader
);
if
(
!
strcmp
(
psz_name
,
"extension"
)
)
{
free
(
psz_name
);
break
;
}
msg_Dbg
(
p_demux
,
"
\t
skipping
\"
%s
\"
extension child"
,
psz_name
);
free
(
psz_name
);
}
}
return
true
;
}
}
free
(
psz_application
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment