Browse Source

Fix audio not working on 64-bit windows with non-latin audio device names

properly fixes #816
pull/2295/head
Zetok Zalbavar 10 years ago
parent
commit
b2b50c26ce
No known key found for this signature in database
GPG Key ID: C953D3880212068A
  1. 4
      src/widget/form/settings/avform.cpp

4
src/widget/form/settings/avform.cpp

@ -264,7 +264,7 @@ void AVForm::getAudioInDevices() @@ -264,7 +264,7 @@ void AVForm::getAudioInDevices()
while (*pDeviceList)
{
int len = strlen(pDeviceList);
#ifdef Q_OS_WIN32
#ifdef Q_OS_WIN
QString inDev = QString::fromUtf8(pDeviceList,len);
#else
QString inDev = QString::fromLocal8Bit(pDeviceList,len);
@ -298,7 +298,7 @@ void AVForm::getAudioOutDevices() @@ -298,7 +298,7 @@ void AVForm::getAudioOutDevices()
while (*pDeviceList)
{
int len = strlen(pDeviceList);
#ifdef Q_OS_WIN32
#ifdef Q_OS_WIN
QString outDev = QString::fromUtf8(pDeviceList,len);
#else
QString outDev = QString::fromLocal8Bit(pDeviceList,len);

Loading…
Cancel
Save