input_item_Init( p_obj, p_input );
vlc_gc_init( p_input, input_item_Destroy );
+ vlc_object_lock( p_obj->p_libvlc );
+ p_input->i_id = ++priv->i_last_input_id;
+ vlc_object_unlock( p_obj->p_libvlc );
+
p_input->b_fixed_name = false;
if( psz_uri )
vlc_mutex_init( &p_libvlc->p_stats->lock );
priv->p_stats_computer = NULL;
+ priv->i_last_input_id = 0; /* Not very safe, should be removed */
+
/*
* Initialize hotkey handling
*/
vlc_mutex_t config_lock; ///< config file lock
char * psz_configfile; ///< location of config file
+ int i_last_input_id ; ///< Last id of input item
+
/* Messages */
msg_bank_t msg_bank; ///< The message bank
int i_verbose; ///< info messages