root object: use vlc_custom_create
authorRémi Denis-Courmont <rem@videolan.org>
Sat, 29 Mar 2008 13:59:35 +0000 (15:59 +0200)
committerRémi Denis-Courmont <rem@videolan.org>
Sat, 29 Mar 2008 13:59:35 +0000 (15:59 +0200)
src/misc/objects.c
src/misc/threads.c

index 011b12f..392c1d3 100644 (file)
@@ -239,10 +239,6 @@ void * __vlc_object_create( vlc_object_t *p_this, int i_type )
 
     switch( i_type )
     {
-        case VLC_OBJECT_GLOBAL:
-            i_size = sizeof(libvlc_global_data_t);
-            psz_type = "global";
-            break;
         case VLC_OBJECT_LIBVLC:
             i_size = sizeof(libvlc_int_t);
             psz_type = "libvlc";
index 633e063..2172e2f 100644 (file)
@@ -187,7 +187,8 @@ int __vlc_threads_init( vlc_object_t *p_this )
 #elif defined( LIBVLC_USE_PTHREAD )
 #endif
 
-        p_root = vlc_object_create( p_libvlc_global, VLC_OBJECT_GLOBAL );
+        p_root = vlc_custom_create( p_libvlc_global, 0, VLC_OBJECT_GLOBAL,
+                                    "global" );
         if( p_root == NULL )
             i_ret = VLC_ENOMEM;