Index: chrome/browser/chrome_content_browser_client.cc |
=================================================================== |
--- chrome/browser/chrome_content_browser_client.cc (revision 124406) |
+++ chrome/browser/chrome_content_browser_client.cc (working copy) |
@@ -1115,7 +1115,9 @@ |
content::MediaStreamDevices devices; |
for (content::MediaStreamDeviceMap::const_iterator it = |
request->devices.begin(); it != request->devices.end(); ++it) { |
- devices.push_back(*it->second.begin()); |
+ if (it->second.size() > 0) { |
Alexei Svitkine (slow)
2012/03/01 15:48:23
Check !it->second.empty() instead. Also, you don't
macourteau
2012/03/01 15:52:21
Done.
|
+ devices.push_back(*it->second.begin()); |
+ } |
} |
callback.Run(devices); |