Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit df7a2c5

Browse files
committed
Bug 1734748 - Mimic the non-Android path wrt manual invalidation. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D127905
1 parent c5f7378 commit df7a2c5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

dom/media/webrtc/CubebDeviceEnumerator.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ void CubebDeviceEnumerator::EnumerateAudioDevices(
256256
name = u"Default audio output device"_ns;
257257
}
258258

259-
if (devices.IsEmpty()) {
259+
if (devices.IsEmpty() || manualInvalidation) {
260+
devices.Clear();
260261
// Bug 1473346: enumerating devices is not supported on Android in cubeb,
261262
// simply state that there is a single sink, that it is the default, and has
262263
// a single channel. All the other values are made up and are not to be

0 commit comments

Comments
 (0)