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
1408e44a
Commit
1408e44a
authored
May 01, 2012
by
Mirsal Ennaime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upnp: Call ixmlRelaxParser only once
parent
340dba4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
modules/services_discovery/upnp.cpp
modules/services_discovery/upnp.cpp
+2
-4
No files found.
modules/services_discovery/upnp.cpp
View file @
1408e44a
...
...
@@ -121,6 +121,8 @@ static int Open( vlc_object_t *p_this )
return
VLC_EGENERIC
;
}
ixmlRelaxParser
(
1
);
p_sys
->
p_server_list
=
new
MediaServerList
(
p_sd
);
vlc_mutex_init
(
&
p_sys
->
callback_lock
);
...
...
@@ -249,8 +251,6 @@ const char* xml_getChildElementValue( IXML_Document* p_doc,
*/
IXML_Document
*
parseBrowseResult
(
IXML_Document
*
p_doc
)
{
ixmlRelaxParser
(
1
);
const
char
*
psz_result_string
=
xml_getChildElementValue
(
p_doc
,
"Result"
);
if
(
!
psz_result_string
)
return
0
;
...
...
@@ -265,8 +265,6 @@ IXML_Document* parseBrowseResult( IXML_Document* p_doc )
int
xml_getNumber
(
IXML_Document
*
p_doc
,
const
char
*
psz_tag_name
)
{
ixmlRelaxParser
(
1
);
const
char
*
psz
=
xml_getChildElementValue
(
p_doc
,
psz_tag_name
);
if
(
!
psz
)
return
0
;
...
...
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