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
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
Show 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,37 +755,16 @@ bool MediaServer::_fetchContents( Container* p_parent )
...
@@ -755,37 +755,16 @@ bool MediaServer::_fetchContents( Container* p_parent )
if
(
!
objectID
)
if
(
!
objectID
)
continue
;
continue
;
const
char
*
childCountStr
=
ixmlElement_getAttribute
(
containerElement
,
"childCount"
);
if
(
!
childCountStr
)
continue
;
int
childCount
=
atoi
(
childCountStr
);
const
char
*
title
=
xml_getChildElementValue
(
containerElement
,
const
char
*
title
=
xml_getChildElementValue
(
containerElement
,
"dc:title"
);
"dc:title"
);
if
(
!
title
)
if
(
!
title
)
continue
;
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
);
Container
*
container
=
new
Container
(
p_parent
,
objectID
,
title
);
p_parent
->
addContainer
(
container
);
p_parent
->
addContainer
(
container
);
if
(
childCount
>
0
)
_fetchContents
(
container
);
_fetchContents
(
container
);
}
}
}
ixmlNodeList_free
(
containerNodeList
);
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