return VLC_SUCCESS;
}
- p_gtk_main = vlc_object_create( p_this, VLC_OBJECT_GENERIC );
+ p_gtk_main = vlc_object_create( p_this, sizeof( vlc_object_t ) );
/* Only initialize gthreads if it's the first time we do it */
if( !g_thread_supported() )
for( i = 0; i < 10; i++ )
{
- pp_objects[i] = vlc_object_create( p_this, VLC_OBJECT_GENERIC );
+ pp_objects[i] = vlc_object_create( p_this, sizeof( vlc_object_t ) );
vlc_object_attach( pp_objects[i], p_this );
vlc_thread_create( pp_objects[i], "foo", MyThread, 0, true );
}
start = mdate();
for( i = 0; i < MAXOBJ * i_level; i++ )
{
- pp_objects[i] = vlc_object_create( p_this, VLC_OBJECT_GENERIC );
+ pp_objects[i] = vlc_object_create( p_this, sizeof( vlc_object_t ) );
}
printf( " - randomly looking up %i objects\n", MAXLOOK * i_level );
MAXTH * i_level, MAXOBJ/MAXTH );
for( i = 0; i < MAXTH * i_level; i++ )
{
- pp_objects[i] = vlc_object_create( p_this, VLC_OBJECT_GENERIC );
+ pp_objects[i] = vlc_object_create( p_this, sizeof( vlc_object_t ) );
vlc_thread_create( pp_objects[i], "foo", Dummy, 0, true );
}
for( i = 0; i < MAXOBJ/MAXTH; i++ )
{
- pp_objects[i] = vlc_object_create( p_this, VLC_OBJECT_GENERIC );
+ pp_objects[i] = vlc_object_create( p_this, sizeof( vlc_object_t ) );
}
vlc_thread_ready( p_this );
vlc_gcrypt_init();
/* create the vnc worker thread */
- p_sys->p_worker_thread = vlc_object_create( p_this, VLC_OBJECT_GENERIC );
+ p_sys->p_worker_thread = vlc_object_create( p_this,
+ sizeof( vlc_object_t ) );
vlc_object_attach( p_sys->p_worker_thread, p_this );
if( vlc_thread_create( p_sys->p_worker_thread, "vnc worker thread",
vnc_worker_thread,
/* create the update request thread */
p_sys->p_update_request_thread = vlc_object_create( p_filter,
- VLC_OBJECT_GENERIC );
+ sizeof( vlc_object_t ) );
vlc_object_attach( p_sys->p_update_request_thread, p_filter );
if( vlc_thread_create( p_sys->p_update_request_thread,
"vnc update request thread",