From d83be5fb402cb13712e875b58598568530984f73 Mon Sep 17 00:00:00 2001 From: Paul Adenot Date: Mon, 24 Oct 2016 17:26:07 +0200 Subject: [PATCH] Bug 1312413 - `mDefaultDevice` should be an index in `mDeviceIndexes`. r=jesup MozReview-Commit-ID: 8UywuqRAegy --HG-- extra : rebase_source : 08ad3f27cebadc3322e7ea199db90786388a69c0 --- dom/media/webrtc/MediaEngineWebRTC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/media/webrtc/MediaEngineWebRTC.cpp b/dom/media/webrtc/MediaEngineWebRTC.cpp index 90fa3fdaf3ed..45af914966d5 100644 --- a/dom/media/webrtc/MediaEngineWebRTC.cpp +++ b/dom/media/webrtc/MediaEngineWebRTC.cpp @@ -95,7 +95,7 @@ void AudioInputCubeb::UpdateDeviceList() if (devices->device[i]->preferred & CUBEB_DEVICE_PREF_VOICE) { // There can be only one... we hope NS_ASSERTION(mDefaultDevice == -1, "multiple default cubeb input devices!"); - mDefaultDevice = i; + mDefaultDevice = j; } } }