Closed Bug 1751443 Opened 2 years ago Closed 2 years ago

Don't count 0-channel device in AudioDeviceSet

Categories

(Core :: WebRTC: Audio/Video, defect, P1)

defect

Tracking

()

RESOLVED FIXED
98 Branch
Tracking Status
firefox97 --- fixed
firefox98 --- fixed

People

(Reporter: chunmin, Assigned: chunmin)

References

Details

Attachments

(4 files)

Per bug 1749281 comment 2 We should avoid creating 0-channel device

Summary: Don' count 0-channel device in AudioDeviceSet → Don't count 0-channel device in AudioDeviceSet

The cubeb_device_collection.count should be set to 0 in the
cubeb_device_collection_destroy.

Depends on D136629

Depends on D136641

Move implementation of cubeb_mock_device_collection_destroy to cpp file

Depends on D136642

Pushed by cchang@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9223e2bf6ad5
Don't count 0-channel device in AudioDeviceSet r=padenot
https://hg.mozilla.org/integration/autoland/rev/e626fd455fef
Correct MockCubeb's device_collection_destroy r=padenot
https://hg.mozilla.org/integration/autoland/rev/8db5a7fbf5a9
Fix style r=padenot
https://hg.mozilla.org/integration/autoland/rev/0d2c7f4df16a
Add MockCubeb::DestroyDeviceCollection r=padenot

Please nominate this for Beta uplift when you get a chance.

Flags: needinfo?(cchang)

Comment on attachment 9260177 [details]
Bug 1751443 - Don't count 0-channel device in AudioDeviceSet

Beta/Release Uplift Approval Request

  • User impact if declined: Users may crash during video conferencing
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This patch simply adds a check to validate the audio device. If the device is zero-channel, then we don't report it to the user so the user won't select the invalid device and then pass it to our system.
  • String changes made/needed:
Flags: needinfo?(cchang)
Attachment #9260177 - Flags: approval-mozilla-beta?
Attachment #9260199 - Flags: approval-mozilla-beta?
Attachment #9260200 - Flags: approval-mozilla-beta?
Attachment #9260201 - Flags: approval-mozilla-beta?

Comment on attachment 9260177 [details]
Bug 1751443 - Don't count 0-channel device in AudioDeviceSet

Mostly just test changes. Fixes a crash. Approved for 97.0b9.

Attachment #9260177 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9260199 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9260200 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9260201 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: