(intf_dialog_args_t *)malloc( sizeof(intf_dialog_args_t) );
memset( p_arg, 0, sizeof(intf_dialog_args_t) );
- p_arg->b_blocking = false;
-
p_arg->psz_title = strdup( _("Open a skin file") );
p_arg->psz_extensions =
strdup( _("Skin files (*.vlt)|*.vlt|Skin files (*.xml)|*.xml|") );
p_arg->pf_callback( p_arg );
}
- /* Blocking or not ? */
- if( p_arg->b_blocking )
- {
- vlc_mutex_lock( &p_arg->lock );
- p_arg->b_ready = 1;
- vlc_cond_signal( &p_arg->wait );
- }
-
if( p_arg->psz_results )
{
for( int i = 0; i < p_arg->i_results; i++ )
if( p_arg->psz_title ) free( p_arg->psz_title );
if( p_arg->psz_extensions ) free( p_arg->psz_extensions );
- if( p_arg->b_blocking )
- {
- vlc_mutex_unlock( &p_arg->lock );
- }
- else
- {
- free( p_arg );
- }
+ free( p_arg );
}
void DialogsProvider::OnOpenFileSimple( wxCommandEvent& event )