- char *psz_config_name;
- if( !psz_audio_output )
- return NULL;
- if( asprintf( &psz_config_name, "%s-audio-device", psz_audio_output ) == -1)
- return NULL;
-
- module_config_t *p_module_config = config_FindConfig(
- VLC_OBJECT( p_instance->p_libvlc_int ), psz_config_name );
-
- if( p_module_config )
- {
- // refresh if there arent devices
- if( p_module_config->i_list < 2 && p_module_config->pf_update_list )
- {
- vlc_value_t val;
- val.psz_string = strdup( p_module_config->value.psz );
-
- p_module_config->pf_update_list(
- VLC_OBJECT( p_instance->p_libvlc_int ), psz_config_name, val, val, NULL );
- free( val.psz_string );
- }