Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
21aa24f6
Commit
21aa24f6
authored
Oct 21, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xspf demuxer: correctly checks "application" attribute of <extension> tag, fix #1342
parent
54f91faa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
2 deletions
+24
-2
modules/demux/playlist/xspf.c
modules/demux/playlist/xspf.c
+24
-2
No files found.
modules/demux/playlist/xspf.c
View file @
21aa24f6
...
...
@@ -652,6 +652,7 @@ static vlc_bool_t parse_extension_node COMPLEX_INTERFACE
char
*
psz_name
=
NULL
;
char
*
psz_value
=
NULL
;
char
*
psz_title
=
NULL
;
char
*
psz_application
=
NULL
;
int
i_node
;
xml_elem_hnd_t
*
p_handler
=
NULL
;
...
...
@@ -677,9 +678,14 @@ static vlc_bool_t parse_extension_node COMPLEX_INTERFACE
{
psz_title
=
unescape_URI_duplicate
(
psz_value
);
}
/* extension attribute: application */
if
(
!
strcmp
(
psz_name
,
"application"
)
)
{
psz_application
=
strdup
(
psz_value
);
}
/* unknown attribute */
else
msg_Warn
(
p_demux
,
"invalid <
node> attribute:
\"
%s
\"
"
,
psz_name
);
msg_Warn
(
p_demux
,
"invalid <
%s> attribute:
\"
%s
\"
"
,
psz_element
,
psz_name
);
FREE_ATT
();
}
...
...
@@ -690,7 +696,23 @@ static vlc_bool_t parse_extension_node COMPLEX_INTERFACE
msg_Warn
(
p_demux
,
"<node> requires
\"
title
\"
attribute"
);
return
VLC_FALSE
;
}
if
(
psz_title
)
free
(
psz_title
);
free
(
psz_title
);
if
(
!
strcmp
(
psz_element
,
"extension"
)
)
{
if
(
!
psz_application
)
{
msg_Warn
(
p_demux
,
"<extension> requires
\"
application
\"
attribute"
);
return
VLC_FALSE
;
}
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
VLC_FALSE
;
}
}
free
(
psz_application
);
/* parse the child elements */
while
(
xml_ReaderRead
(
p_xml_reader
)
==
1
)
...
...
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