[vlc-devel] Compilation error in upnp_intel.cpp

Gilles Sabourin gilles.sabourin at free.fr
Thu May 15 00:29:21 CEST 2008


Hi Pierre,


Yes, thank you Pierre, this error have gone ! But, sorry, there is still a 
problem, later in the code :
 
g++ -DHAVE_CONFIG_H -I. -I../.. -DSYS_LINUX -I../../include -I../../include -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -DDEBUG -D__LIBVLC__ -D__PLUGIN__ -DMODULE_NAME=upnp_intel -DMODULE_NAME_IS_upnp_intel -DMODULE_STRING=\"upnp_intel\" -g -O0 -g -O2 -MT 
libupnp_intel_plugin_la-upnp_intel.lo -MD -MP -MF .deps/libupnp_intel_plugin_la-upnp_intel.Tpo -c 
upnp_intel.cpp  -fPIC -DPIC -o .libs/libupnp_intel_plugin_la-upnp_intel.o
upnp_intel.cpp: In function 'void Close(vlc_object_t*)':
upnp_intel.cpp:314: error: 'p_intf' was not declared in this scope
make[4]: *** [libupnp_intel_plugin_la-upnp_intel.lo] Error 1
make[4]: Leaving directory 
`/usr/src/packages/BUILD/vlc-beta-0.9.0/modules/services_discovery'
make[3]: *** [all] Error 2
make[3]: Leaving directory 
`/usr/src/packages/BUILD/vlc-beta-0.9.0/modules/services_discovery'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/packages/BUILD/vlc-beta-0.9.0/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/packages/BUILD/vlc-beta-0.9.0'


In Close function, shouldn't it be pl_Release( p_sd ),
instead of pl_Release( p_intf ) ?


static void Close( vlc_object_t *p_this )
{
    services_discovery_t *p_sd = ( services_discovery_t* )p_this;
    services_discovery_sys_t *p_sys = p_sd->p_sys;

    playlist_NodeDelete( pl_Get( p_sd ), p_sys->p_node_one, true,
                         true );
    playlist_NodeDelete( pl_Get( p_sd ), p_sys->p_node_cat, true,
                         true );
    pl_Release( p_intf );
    free( p_sys );
}



Le Wednesday 14 May 2008 23:52:28, vous avez écrit :
> Hi Gilles,
>
> c7a3f593d20 should help here.
>
> Thanks for the report!
>
> Pierre.

Thanks,
Gilles

-------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20080515/3780d948/attachment.sig>


More information about the vlc-devel mailing list