- p_sys->p_thread = p_thread = (projectm_thread_t *)
- vlc_object_create( p_filter, sizeof( projectm_thread_t ) );
- vlc_object_attach( p_sys->p_thread, p_filter );
- vlc_sem_init( &p_thread->ready, 0 );
- p_thread->b_error = false;
- p_thread->i_width = var_CreateGetInteger( p_filter, "projectm-width" );
- p_thread->i_height = var_CreateGetInteger( p_filter, "projectm-height" );
-
- p_thread->i_channels = aout_FormatNbChannels( &p_filter->fmt_in.audio );
- p_thread->psz_config = var_CreateGetString( p_filter, "projectm-config" );
- vlc_mutex_init( &p_thread->lock );
- p_thread->p_buffer = NULL;
- p_thread->i_buffer_size = 0;
- p_thread->i_nb_samples = 0;
+ vlc_sem_init( &p_sys->ready, 0 );
+ p_sys->b_error = false;
+ p_sys->i_width = var_CreateGetInteger( p_filter, "projectm-width" );
+ p_sys->i_height = var_CreateGetInteger( p_filter, "projectm-height" );
+ p_sys->i_channels = aout_FormatNbChannels( &p_filter->fmt_in.audio );
+ p_sys->psz_config = var_CreateGetString( p_filter, "projectm-config" );
+ vlc_mutex_init( &p_sys->lock );
+ p_sys->p_buffer = NULL;
+ p_sys->i_buffer_size = 0;
+ p_sys->i_nb_samples = 0;