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
cbfb5395
Commit
cbfb5395
authored
Apr 26, 2011
by
Konstantin Pavlov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UPNP: Attempt to fix #4714. Not tested.
parent
0bbdffbd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
24 deletions
+3
-24
modules/services_discovery/upnp.cpp
modules/services_discovery/upnp.cpp
+3
-24
No files found.
modules/services_discovery/upnp.cpp
View file @
cbfb5395
...
...
@@ -755,36 +755,15 @@ bool MediaServer::_fetchContents( Container* p_parent )
if
(
!
objectID
)
continue
;
const
char
*
childCountStr
=
ixmlElement_getAttribute
(
containerElement
,
"childCount"
);
if
(
!
childCountStr
)
continue
;
int
childCount
=
atoi
(
childCountStr
);
const
char
*
title
=
xml_getChildElementValue
(
containerElement
,
"dc:title"
);
if
(
!
title
)
continue
;
const
char
*
resource
=
xml_getChildElementValue
(
containerElement
,
"res"
);
if
(
resource
&&
childCount
<
1
)
{
Item
*
item
=
new
Item
(
p_parent
,
objectID
,
title
,
resource
,
-
1
);
p_parent
->
addItem
(
item
);
}
else
{
Container
*
container
=
new
Container
(
p_parent
,
objectID
,
title
);
p_parent
->
addContainer
(
container
);
if
(
childCount
>
0
)
_fetchContents
(
container
);
}
Container
*
container
=
new
Container
(
p_parent
,
objectID
,
title
);
p_parent
->
addContainer
(
container
);
_fetchContents
(
container
);
}
ixmlNodeList_free
(
containerNodeList
);
}
...
...
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