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
1095d828
Commit
1095d828
authored
Dec 03, 2015
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upnp: Read the target url from p_access
parent
973a465a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
modules/services_discovery/upnp.cpp
modules/services_discovery/upnp.cpp
+3
-4
modules/services_discovery/upnp.hpp
modules/services_discovery/upnp.hpp
+1
-1
No files found.
modules/services_discovery/upnp.cpp
View file @
1095d828
...
@@ -621,8 +621,8 @@ int MediaServerList::Callback( Upnp_EventType event_type, void* p_event, void* p
...
@@ -621,8 +621,8 @@ int MediaServerList::Callback( Upnp_EventType event_type, void* p_event, void* p
namespace
Access
namespace
Access
{
{
MediaServer
::
MediaServer
(
const
char
*
psz_url
,
access_t
*
p_access
)
MediaServer
::
MediaServer
(
access_t
*
p_access
)
:
url_
(
psz_url
)
:
url_
(
p
_access
->
p
sz_url
)
,
access_
(
p_access
)
,
access_
(
p_access
)
,
xmlDocument_
(
NULL
)
,
xmlDocument_
(
NULL
)
,
containerNodeList_
(
NULL
)
,
containerNodeList_
(
NULL
)
...
@@ -935,8 +935,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -935,8 +935,7 @@ static int Open( vlc_object_t *p_this )
return
VLC_ENOMEM
;
return
VLC_ENOMEM
;
p_access
->
p_sys
=
p_sys
;
p_access
->
p_sys
=
p_sys
;
p_sys
->
p_server
=
new
(
std
::
nothrow
)
MediaServer
(
p_access
->
psz_location
,
p_sys
->
p_server
=
new
(
std
::
nothrow
)
MediaServer
(
p_access
);
p_access
);
if
(
!
p_sys
->
p_server
)
if
(
!
p_sys
->
p_server
)
{
{
delete
p_sys
;
delete
p_sys
;
...
...
modules/services_discovery/upnp.hpp
View file @
1095d828
...
@@ -120,7 +120,7 @@ namespace Access
...
@@ -120,7 +120,7 @@ namespace Access
class
MediaServer
class
MediaServer
{
{
public:
public:
MediaServer
(
const
char
*
psz_url
,
access_t
*
p_access
);
MediaServer
(
access_t
*
p_access
);
~
MediaServer
();
~
MediaServer
();
input_item_t
*
getNextItem
();
input_item_t
*
getNextItem
();
...
...
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