systemvolumeplugin: populate sink description with sink name when building with minGW32

This commit is contained in:
Piyush Aggarwal 2021-06-21 11:18:53 +05:30
parent d071d034c3
commit a01af1b406

View file

@ -295,6 +295,8 @@ bool SystemvolumePlugin::sendSinkList()
deviceProperties->GetValue(PKEY_Device_DeviceDesc, &deviceProperty); deviceProperties->GetValue(PKEY_Device_DeviceDesc, &deviceProperty);
desc = QString::fromWCharArray(deviceProperty.pwszVal); desc = QString::fromWCharArray(deviceProperty.pwszVal);
//PropVariantClear(&deviceProperty); //PropVariantClear(&deviceProperty);
#else
desc = name;
#endif #endif
QJsonObject sinkObject; QJsonObject sinkObject;