if(!(p_sd->p_sys = p_sys))
return VLC_ENOMEM;
- services_discovery_SetLocalizedName( p_sd, _("UPnP devices") );
-
res = UpnpInit( 0, 0 );
if( res != UPNP_E_SUCCESS )
{
msg_Err( p_sd, "%s", UpnpGetErrorMessage( res ) );
+ free( p_sys );
return VLC_EGENERIC;
}
Container* root = new Container( 0, "0", getFriendlyName() );
_fetchContents( root );
- // if ( _contents )
- // {
- // PL_LOCK;
- // playlist_NodeEmpty( p_playlist, _playlistNode, true );
- // PL_UNLOCK;
- // delete _contents;
- // }
-
_contents = root;
_contents->setInputItem( _inputItem );