static void InitDeviceValues( libvlc_int_t * );
-vlc_object_t * vlc_global_object( void )
+libvlc_global_data_t *vlc_global( void )
{
- return VLC_OBJECT( &libvlc_global );
+ return &libvlc_global;
}
/*****************************************************************************
i_instances--;
return NULL;
}
- p_libvlc->thread_id = 0;
p_libvlc->p_playlist = NULL;
p_libvlc->psz_object_name = "libvlc";
vlc_mutex_init( p_libvlc, &p_libvlc->quicktime_lock );
vlc_thread_set_priority( p_libvlc, VLC_THREAD_PRIORITY_LOW );
#endif
- /* Fake attachment */
- p_libvlc->b_attached = VLC_TRUE;
/* Store data for the non-reentrant API */
p_static_vlc = p_libvlc;
break;
pp_shortcut ++;
}
+ if( !*pp_shortcut )
+ continue;
}
/* Ignore modules without config options */
if( b_verbose )
{
- const char **pp_shortcut = p_parser->pp_shortcuts;
+ const char *const *pp_shortcut = p_parser->pp_shortcuts;
while( *pp_shortcut )
{
if( strcmp( *pp_shortcut, p_parser->psz_object_name ) )