waveout.c forgott to convert string to UTF8 before storing in choice list
if(waveOutGetDevCaps(i, &caps, sizeof(WAVEOUTCAPS))
== MMSYSERR_NOERROR)
{
if(waveOutGetDevCaps(i, &caps, sizeof(WAVEOUTCAPS))
== MMSYSERR_NOERROR)
{
- sprintf(sz_dev_name,psz_device_name_fmt,caps.szPname,
+ sprintf( sz_dev_name, psz_device_name_fmt, caps.szPname,
- p_item->ppsz_list[j] = strdup( sz_dev_name );
+ p_item->ppsz_list[j] = FromLocaleDup( sz_dev_name );
p_item->ppsz_list_text[j] = FromLocaleDup( sz_dev_name );
p_item->i_list++;
j++;
p_item->ppsz_list_text[j] = FromLocaleDup( sz_dev_name );
p_item->i_list++;
j++;
if(waveOutGetDevCaps(i, &caps, sizeof(WAVEOUTCAPS))
== MMSYSERR_NOERROR)
{
if(waveOutGetDevCaps(i, &caps, sizeof(WAVEOUTCAPS))
== MMSYSERR_NOERROR)
{
- sprintf(sz_dev_name,psz_device_name_fmt,caps.szPname,
+ sprintf(sz_dev_name, psz_device_name_fmt, caps.szPname,
- if(!stricmp(sz_dev_name,psz_device_name))
- return i;
+ char *psz_temp = FromLocaleDup(sz_dev_name);
+
+ if( !stricmp(psz_temp, psz_device_name) )
+ {
+ LocaleFree( psz_temp );
+ return i;
+ }
+ LocaleFree( psz_temp );
VStringConfigControl *vscc =
qobject_cast<VStringConfigControl *>(this);
assert( vscc );
VStringConfigControl *vscc =
qobject_cast<VStringConfigControl *>(this);
assert( vscc );
- config_PutPsz( p_intf, vscc->getName(), qta( vscc->getValue() ) );
+ config_PutPsz( p_intf, vscc->getName(), qtu( vscc->getValue() ) );
break;
}
case CONFIG_ITEM_KEY:
break;
}
case CONFIG_ITEM_KEY:
p_module_config->pf_update_list(p_this, p_item->psz_name, val, val, NULL);
p_module_config->pf_update_list(p_this, p_item->psz_name, val, val, NULL);
- // assume in a×y case that dirty was set to VLC_TRUE
+ // assume in any case that dirty was set to VLC_TRUE
// because lazy programmes will use the same callback for
// this, like the one behind the refresh push button?
p_module_config->b_dirty = VLC_FALSE;
// because lazy programmes will use the same callback for
// this, like the one behind the refresh push button?
p_module_config->b_dirty = VLC_FALSE;
p_module_config->ppsz_list_text[i_index])?
p_module_config->ppsz_list_text[i_index] :
p_module_config->ppsz_list[i_index] ),
p_module_config->ppsz_list_text[i_index])?
p_module_config->ppsz_list_text[i_index] :
p_module_config->ppsz_list[i_index] ),
- QVariant( p_module_config->ppsz_list[i_index] ) );
+ QVariant( qfu(p_module_config->ppsz_list[i_index] )) );
if( p_item->value.psz && !strcmp( p_module_config->value.psz,
p_module_config->ppsz_list[i_index] ) )
combo->setCurrentIndex( combo->count() - 1 );
if( p_item->value.psz && !strcmp( p_module_config->value.psz,
p_module_config->ppsz_list[i_index] ) )
combo->setCurrentIndex( combo->count() - 1 );