mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1245216: white-list the fake 440Hz audio source used in automation for getUserMedia enumeration r=padenot
MozReview-Commit-ID: Gor7DsJlI2r
This commit is contained in:
parent
a213ff0f47
commit
7c1ffd059c
@ -271,10 +271,14 @@ private:
|
||||
// Calculate translation from existing mDevices to new devices. Note we
|
||||
// never end up with less devices than before, since people have
|
||||
// stashed indexes.
|
||||
// For some reason the "fake" device for automation is marked as DISABLED,
|
||||
// so white-list it.
|
||||
for (uint32_t i = 0; i < devices->count; i++) {
|
||||
if (devices->device[i]->type == CUBEB_DEVICE_TYPE_INPUT && // paranoia
|
||||
(devices->device[i]->state == CUBEB_DEVICE_STATE_ENABLED ||
|
||||
devices->device[i]->state == CUBEB_DEVICE_STATE_UNPLUGGED))
|
||||
devices->device[i]->state == CUBEB_DEVICE_STATE_UNPLUGGED ||
|
||||
(devices->device[i]->state == CUBEB_DEVICE_STATE_DISABLED &&
|
||||
strcmp(devices->device[i]->friendly_name, "Sine source at 440 Hz") == 0)))
|
||||
{
|
||||
auto j = mDeviceNames->IndexOf(devices->device[i]->device_id);
|
||||
if (j != nsTArray<nsCString>::NoIndex) {
|
||||
|
Loading…
Reference in New Issue
Block a user