]> git.sesse.net Git - vlc/commitdiff
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 011b12fa4931acb74aa849570247f0598207d8d2..392c1d38208fd20a30aaa9000188fff2012438eb 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 633e0634c23d0a5c37e4067909a5beaf92b5336f..2172e2f42ce6e2d411cc77b75b8c9a9c9b0f4b9d 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;