Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
6b18cf4c
Commit
6b18cf4c
authored
Feb 02, 2010
by
Jakob Leben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upnp_intel: new playlist design
parent
128fadfc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
modules/services_discovery/upnp_intel.cpp
modules/services_discovery/upnp_intel.cpp
+16
-3
modules/services_discovery/upnp_intel.hpp
modules/services_discovery/upnp_intel.hpp
+1
-1
No files found.
modules/services_discovery/upnp_intel.cpp
View file @
6b18cf4c
...
...
@@ -659,7 +659,7 @@ void MediaServer::fetchContents()
_contents
=
root
;
_contents
->
setInputItem
(
_inputItem
);
_buildPlaylist
(
_contents
);
_buildPlaylist
(
_contents
,
NULL
);
}
bool
MediaServer
::
_fetchContents
(
Container
*
parent
)
...
...
@@ -780,17 +780,23 @@ bool MediaServer::_fetchContents( Container* parent )
return
true
;
}
void
MediaServer
::
_buildPlaylist
(
Container
*
parent
)
void
MediaServer
::
_buildPlaylist
(
Container
*
parent
,
input_item_node_t
*
p_input_node
)
{
bool
send
=
p_input_node
==
NULL
;
if
(
send
)
p_input_node
=
input_item_node_Create
(
parent
->
getInputItem
()
);
for
(
unsigned
int
i
=
0
;
i
<
parent
->
getNumContainers
();
i
++
)
{
Container
*
container
=
parent
->
getContainer
(
i
);
input_item_t
*
p_input_item
=
input_item_New
(
_p_sd
,
"vlc://nop"
,
parent
->
getTitle
()
);
input_item_AddSubItem
(
parent
->
getInputItem
(),
p_input_item
);
input_item_node_t
*
p_new_node
=
input_item_node_AppendItem
(
p_input_node
,
p_input_item
);
container
->
setInputItem
(
p_input_item
);
_buildPlaylist
(
container
);
_buildPlaylist
(
container
,
p_new_node
);
}
for
(
unsigned
int
i
=
0
;
i
<
parent
->
getNumItems
();
i
++
)
...
...
@@ -802,8 +808,15 @@ void MediaServer::_buildPlaylist( Container* parent )
item
->
getTitle
()
);
assert
(
p_input_item
);
input_item_AddSubItem
(
parent
->
getInputItem
(),
p_input_item
);
input_item_node_AppendItem
(
p_input_node
,
p_input_item
);
item
->
setInputItem
(
p_input_item
);
}
if
(
send
)
{
input_item_AddSubItemTree
(
p_input_node
);
input_item_node_Delete
(
p_input_node
);
}
}
void
MediaServer
::
setInputItem
(
input_item_t
*
p_input_item
)
...
...
modules/services_discovery/upnp_intel.hpp
View file @
6b18cf4c
...
...
@@ -69,7 +69,7 @@ public:
private:
bool
_fetchContents
(
Container
*
parent
);
void
_buildPlaylist
(
Container
*
container
);
void
_buildPlaylist
(
Container
*
container
,
input_item_node_t
*
);
IXML_Document
*
_browseAction
(
const
char
*
,
const
char
*
,
const
char
*
,
const
char
*
,
const
char
*
,
const
char
*
);
...
...
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