[vlc-devel] commit: Kill VLC_OBJECT_INTF ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat May 23 20:18:18 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat May 23 21:17:47 2009 +0300| [46b0eb666c5ab3d36ed285c4718a170a7a516381] | committer: Rémi Denis-Courmont 

Kill VLC_OBJECT_INTF

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=46b0eb666c5ab3d36ed285c4718a170a7a516381
---

 src/interface/interface.c |    4 +++-
 src/libvlc.h              |    1 -
 src/misc/objects.c        |    4 ----
 3 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/interface/interface.c b/src/interface/interface.c
index 46192d8..00871e4 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 09a0952..97e4ade 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 b0e6e62..eea00ba 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";




More information about the vlc-devel mailing list