Commit e8d99a6b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

root object: use vlc_custom_create

parent 28257ce4
...@@ -239,10 +239,6 @@ void * __vlc_object_create( vlc_object_t *p_this, int i_type ) ...@@ -239,10 +239,6 @@ void * __vlc_object_create( vlc_object_t *p_this, int i_type )
switch( i_type ) switch( i_type )
{ {
case VLC_OBJECT_GLOBAL:
i_size = sizeof(libvlc_global_data_t);
psz_type = "global";
break;
case VLC_OBJECT_LIBVLC: case VLC_OBJECT_LIBVLC:
i_size = sizeof(libvlc_int_t); i_size = sizeof(libvlc_int_t);
psz_type = "libvlc"; psz_type = "libvlc";
......
...@@ -187,7 +187,8 @@ int __vlc_threads_init( vlc_object_t *p_this ) ...@@ -187,7 +187,8 @@ int __vlc_threads_init( vlc_object_t *p_this )
#elif defined( LIBVLC_USE_PTHREAD ) #elif defined( LIBVLC_USE_PTHREAD )
#endif #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 ) if( p_root == NULL )
i_ret = VLC_ENOMEM; i_ret = VLC_ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment