author | Gian-Carlo Pascutto <gcp@mozilla.com> |
Tue, 15 Mar 2016 20:39:37 +0100 | |
changeset 289122 | a0a16898e8db0ded551630b2dae95be9a268ef1c |
parent 289121 | a6e3806b9aff041e2f76c39dd788b431b798c7f5 |
child 289123 | 1ffc09b6908f450f96b3504b2b2b7cfe5f9bf6c2 |
push id | 73713 |
push user | gpascutto@mozilla.com |
push date | Thu, 17 Mar 2016 08:52:16 +0000 |
treeherder | mozilla-inbound@1ffc09b6908f [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | jesup |
bugs | 1254102 |
milestone | 48.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/dom/media/webrtc/MediaEngineWebRTC.cpp +++ b/dom/media/webrtc/MediaEngineWebRTC.cpp @@ -215,19 +215,16 @@ MediaEngineWebRTC::EnumerateVideoDevices * Enumeration is not neccessary if GIPS reports the same set of devices * for a given instance of the engine. Likewise, if a device was plugged out, * mVideoSources must be updated. */ int num; num = mozilla::camera::GetChildAndCall( &mozilla::camera::CamerasChild::NumberOfCaptureDevices, capEngine); - if (num <= 0) { - return; - } for (int i = 0; i < num; i++) { char deviceName[MediaEngineSource::kMaxDeviceNameLength]; char uniqueId[MediaEngineSource::kMaxUniqueIdLength]; // paranoia deviceName[0] = '\0'; uniqueId[0] = '\0';