Commit 1095d828 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

upnp: Read the target url from p_access

parent 973a465a
...@@ -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->psz_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;
......
...@@ -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();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment