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
85f6dac5
Commit
85f6dac5
authored
Oct 14, 2006
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed compilation, not tested though
parent
ca5af2c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
15 deletions
+6
-15
modules/services_discovery/upnp_intel.cpp
modules/services_discovery/upnp_intel.cpp
+6
-15
No files found.
modules/services_discovery/upnp_intel.cpp
View file @
85f6dac5
...
...
@@ -48,6 +48,7 @@
struct
services_discovery_sys_t
{
playlist_item_t
*
p_node_cat
;
playlist_item_t
*
p_node
;
playlist_t
*
p_playlist
;
};
...
...
@@ -282,9 +283,6 @@ static int Open( vlc_object_t *p_this )
services_discovery_sys_t
*
p_sys
=
(
services_discovery_sys_t
*
)
malloc
(
sizeof
(
services_discovery_sys_t
)
);
playlist_view_t
*
p_view
;
vlc_value_t
val
;
p_sd
->
pf_run
=
Run
;
p_sd
->
p_sys
=
p_sys
;
...
...
@@ -294,17 +292,13 @@ static int Open( vlc_object_t *p_this )
FIND_ANYWHERE
);
if
(
!
p_sys
->
p_playlist
)
{
msg_Warn
(
p_sd
,
"unable to find playlist, cancelling UPnP listening"
);
return
VLC_EGENERIC
;
msg_Warn
(
p_sd
,
"unable to find playlist, cancelling UPnP listening"
);
return
VLC_EGENERIC
;
}
p_view
=
playlist_ViewFind
(
p_sys
->
p_playlist
,
VIEW_CATEGORY
);
p_sys
->
p_node
=
playlist_NodeCreate
(
p_sys
->
p_playlist
,
VIEW_CATEGORY
,
"UPnP"
,
p_view
->
p_root
);
p_sys
->
p_node
->
i_flags
|=
PLAYLIST_RO_FLAG
;
p_sys
->
p_node
->
i_flags
&=
~
PLAYLIST_SKIP_FLAG
;
val
.
b_bool
=
VLC_TRUE
;
var_Set
(
p_sys
->
p_playlist
,
"intf-change"
,
val
);
playlist_NodesPairCreate
(
p_sys
->
p_playlist
,
_
(
"Devices"
),
&
p_sys
->
p_node_cat
,
&
p_sys
->
p_node
,
VLC_TRUE
);
return
VLC_SUCCESS
;
}
...
...
@@ -871,7 +865,6 @@ void MediaServer::_buildPlaylist( Container* parent )
char
*
title
=
strdup
(
container
->
getTitle
()
);
playlist_item_t
*
node
=
playlist_NodeCreate
(
_cookie
->
serviceDiscovery
->
p_sys
->
p_playlist
,
VIEW_CATEGORY
,
title
,
parentNode
);
free
(
title
);
...
...
@@ -891,7 +884,6 @@ void MediaServer::_buildPlaylist( Container* parent )
playlist_NodeAddItem
(
_cookie
->
serviceDiscovery
->
p_sys
->
p_playlist
,
node
,
VIEW_CATEGORY
,
parentNode
,
PLAYLIST_APPEND
,
PLAYLIST_END
);
item
->
setPlaylistNode
(
node
);
...
...
@@ -934,7 +926,6 @@ bool MediaServerList::addServer( MediaServer* s )
char
*
name
=
strdup
(
s
->
getFriendlyName
()
);
playlist_item_t
*
node
=
playlist_NodeCreate
(
_cookie
->
serviceDiscovery
->
p_sys
->
p_playlist
,
VIEW_CATEGORY
,
name
,
_cookie
->
serviceDiscovery
->
p_sys
->
p_node
);
free
(
name
);
...
...
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