Commit 8a5858a9 authored by Art Pinch's avatar Art Pinch Committed by Piyush Aggarwal
Browse files

[SystemVolumePlugin][Windows] Fixed sink callback registration condition

parent b5ac96ce
Pipeline #45167 passed with stage
in 5 minutes and 43 seconds
......@@ -312,13 +312,13 @@ bool SystemvolumePlugin::sendSinkList()
sinkObject.insert(QStringLiteral("maxVolume"), (qint64)100);
// Register Callback
QString qDeviceId = QString::fromWCharArray(deviceId);
if (!sinkList.contains(qDeviceId)) {
if (!sinkList.contains(name)) {
callback = new CAudioEndpointVolumeCallback(*this, name);
sinkList[name] = qMakePair(endpoint, callback);
QString qDeviceId = QString::fromWCharArray(deviceId);
idToNameMap[qDeviceId] = name;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment