diff options
Diffstat (limited to 'dom/media/webrtc/MediaEngineWebRTC.h')
-rw-r--r-- | dom/media/webrtc/MediaEngineWebRTC.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/dom/media/webrtc/MediaEngineWebRTC.h b/dom/media/webrtc/MediaEngineWebRTC.h index 2773d7d1cf..1834f3bd39 100644 --- a/dom/media/webrtc/MediaEngineWebRTC.h +++ b/dom/media/webrtc/MediaEngineWebRTC.h @@ -180,8 +180,7 @@ public: { if (mDevices) { // This doesn't require anything more than support for free() - cubeb* context = CubebUtils::GetCubebContext(); - cubeb_device_collection_destroy(context, mDevices); + cubeb_device_collection_destroy(mDevices); mDevices = nullptr; } delete mDeviceIndexes; @@ -225,7 +224,7 @@ public: sMutex.AssertCurrentThreadOwns(); int dev_index = DeviceIndex(aDeviceIndex); if (dev_index != -1) { - aID = mDevices->device[dev_index].devid; + aID = mDevices->device[dev_index]->devid; return true; } return false; @@ -239,7 +238,7 @@ public: return 1; } PR_snprintf(aStrNameUTF8, 128, "%s%s", aIndex == -1 ? "default: " : "", - mDevices->device[devindex].friendly_name); + mDevices->device[devindex]->friendly_name); aStrGuidUTF8[0] = '\0'; return 0; } |