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
49b4824b
Commit
49b4824b
authored
Aug 05, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skins2: don't load XML catalog if DTD not requested
Also don't fail if the XML validator cannot be loaded.
parent
6141b54e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
13 deletions
+11
-13
modules/gui/skins2/parser/xmlparser.cpp
modules/gui/skins2/parser/xmlparser.cpp
+11
-13
No files found.
modules/gui/skins2/parser/xmlparser.cpp
View file @
49b4824b
...
...
@@ -39,21 +39,19 @@ XMLParser::XMLParser( intf_thread_t *pIntf, const string &rFileName,
m_pReader
=
NULL
;
m_pStream
=
NULL
;
m_pXML
=
xml_Create
(
pIntf
);
if
(
!
m_pXML
)
if
(
useDTD
)
{
msg_Err
(
getIntf
(),
"failed to open XML parser"
);
return
;
m_pXML
=
xml_Create
(
pIntf
);
if
(
m_pXML
)
LoadCatalog
();
else
{
msg_Err
(
getIntf
(),
"DTD not supported"
);
useDTD
=
false
;
}
}
// Avoid duplicate initialization (mutex needed ?) -> doesn't work
// Reinitialization required for a new XMLParser
// if( !m_initialized )
// {
// LoadCatalog();
// m_initialized = true;
// }
LoadCatalog
();
else
m_pXML
=
NULL
;
char
*
psz_uri
=
make_URI
(
rFileName
.
c_str
(),
NULL
);
m_pStream
=
stream_UrlNew
(
pIntf
,
psz_uri
);
...
...
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