From: RĂ©mi Denis-Courmont Date: Sat, 23 May 2009 18:17:47 +0000 (+0300) Subject: Kill VLC_OBJECT_INTF X-Git-Tag: 1.1.0-ff~5798 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=46b0eb666c5ab3d36ed285c4718a170a7a516381;p=vlc Kill VLC_OBJECT_INTF --- diff --git a/src/interface/interface.c b/src/interface/interface.c index 46192d83b0..00871e4a98 100644 --- a/src/interface/interface.c +++ b/src/interface/interface.c @@ -73,9 +73,11 @@ int intf_Create( vlc_object_t *p_this, const char *psz_module ) { libvlc_int_t *p_libvlc = p_this->p_libvlc; intf_thread_t * p_intf; + static const char psz_type[] = "interface"; /* Allocate structure */ - p_intf = vlc_object_create( p_libvlc, VLC_OBJECT_INTF ); + p_intf = vlc_custom_create( p_libvlc, sizeof( *p_intf ), + VLC_OBJECT_GENERIC, psz_type ); if( !p_intf ) return VLC_ENOMEM; diff --git a/src/libvlc.h b/src/libvlc.h index 09a0952233..97e4adefa9 100644 --- a/src/libvlc.h +++ b/src/libvlc.h @@ -53,7 +53,6 @@ void system_End ( libvlc_int_t * ); #define vlc_object_signal_unlocked( obj ) vlc_list_t *vlc_list_find( vlc_object_t *, int, int ); -#define VLC_OBJECT_INTF (-4) /* * Threads subsystem diff --git a/src/misc/objects.c b/src/misc/objects.c index b0e6e625d5..eea00ba117 100644 --- a/src/misc/objects.c +++ b/src/misc/objects.c @@ -205,10 +205,6 @@ void * __vlc_object_create( vlc_object_t *p_this, int i_type ) switch( i_type ) { - case VLC_OBJECT_INTF: - i_size = sizeof(intf_thread_t); - psz_type = "interface"; - break; case VLC_OBJECT_DECODER: i_size = sizeof(decoder_t); psz_type = "decoder";