Bug 1426719 - Workaround a bug in Windows Insider build 17063 which breaks sound in Firefox.
MozReview-Commit-ID: Csq0i2DvFnx
--- a/media/libcubeb/src/cubeb_wasapi.cpp
+++ b/media/libcubeb/src/cubeb_wasapi.cpp
@@ -1153,17 +1153,17 @@ stream_set_volume(cubeb_stream * stm, fl
}
float volumes[10];
for (uint32_t i = 0; i < channels; i++) {
volumes[i] = volume;
}
hr = stm->audio_stream_volume->SetAllVolumes(channels, volumes);
- if (hr != S_OK) {
+ if (FAILED(hr)) {
LOG("could not set the channels volume: %lx", hr);
return CUBEB_ERROR;
}
return CUBEB_OK;
}
} // namespace anonymous