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
namespace Access
{
MediaServer::MediaServer(const char *psz_url, access_t *p_access)
: url_( psz_url )
MediaServer::MediaServer( access_t *p_access )
: url_( p_access->psz_url )
, access_( p_access )
, xmlDocument_( NULL )
, containerNodeList_( NULL )
......@@ -935,8 +935,7 @@ static int Open( vlc_object_t *p_this )
return VLC_ENOMEM;
p_access->p_sys = p_sys;
p_sys->p_server = new(std::nothrow) MediaServer( p_access->psz_location,
p_access );
p_sys->p_server = new(std::nothrow) MediaServer( p_access );
if ( !p_sys->p_server )
{
delete p_sys;
......
......@@ -120,7 +120,7 @@ namespace Access
class MediaServer
{
public:
MediaServer( const char* psz_url, access_t* p_access );
MediaServer( access_t* p_access );
~MediaServer();
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