Bug 1251502 - Use `devid` instead of `device_id` when getting the ID for a cubeb device. r=jesup
authorAlex Chronopoulos <achronop@gmail.com>
Fri, 25 Mar 2016 17:41:45 +0100
changeset 290636 1b22933d97f20bc351b9576499aab7448cdb2373
parent 290635 b903c18bbb32c68c210a45da69ee3cbbe2ebeb41
child 290637 3deb965ce2e4f9754a48a3e232aeb271b3e62ecc
push id19656
push usergwagner@mozilla.com
push dateMon, 04 Apr 2016 13:43:23 +0000
treeherderb2g-inbound@e99061fde28a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjesup
bugs1251502
milestone48.0a1
Bug 1251502 - Use `devid` instead of `device_id` when getting the ID for a cubeb device. r=jesup MozReview-Commit-ID: JojzRPFhYJ
dom/media/webrtc/MediaEngineWebRTC.h
--- a/dom/media/webrtc/MediaEngineWebRTC.h
+++ b/dom/media/webrtc/MediaEngineWebRTC.h
@@ -194,17 +194,17 @@ public:
     // Note: if the device is gone, this will be -1
     return (*mDeviceIndexes)[aIndex]; // translate to mDevices index
   }
 
   static bool GetDeviceID(int aDeviceIndex, CubebUtils::AudioDeviceID &aID)
   {
     int dev_index = DeviceIndex(aDeviceIndex);
     if (dev_index != -1) {
-      aID = mDevices->device[dev_index]->device_id;
+      aID = mDevices->device[dev_index]->devid;
       return true;
     }
     return false;
   }
 
   int GetRecordingDeviceName(int aIndex, char aStrNameUTF8[128],
                              char aStrGuidUTF8[128])
   {