Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(661)

Unified Diff: content/browser/renderer_host/media/media_stream_ui_controller.cc

Issue 11783059: Ensures that WebRTC works for device selection using a different sample rate than default (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed content_unittests Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/media/media_stream_ui_controller.cc
diff --git a/content/browser/renderer_host/media/media_stream_ui_controller.cc b/content/browser/renderer_host/media/media_stream_ui_controller.cc
index fafb6990e0161a074f5a8c113ef1b8c06466657b..8ab3c007211f1ba590eab8da94b0f1f9141d6603 100644
--- a/content/browser/renderer_host/media/media_stream_ui_controller.cc
+++ b/content/browser/renderer_host/media/media_stream_ui_controller.cc
@@ -199,8 +199,13 @@ void MediaStreamUIController::PostResponse(
// though DevicesAccepted seems to do so.
for (MediaStreamDevices::const_iterator dev = devices.begin();
dev != devices.end(); ++dev) {
- device_list.push_back(StreamDeviceInfo(
- dev->type, dev->name, dev->id, false));
+ if (dev->type == content::MEDIA_DEVICE_AUDIO_CAPTURE)
tommi (sloooow) - chröme 2013/01/15 17:43:49 {}
henrika (OOO until Aug 14) 2013/01/16 16:37:17 Done.
+ device_list.push_back(StreamDeviceInfo(
+ content::MEDIA_DEVICE_AUDIO_CAPTURE, dev->name, dev->id,
+ dev->sample_rate, dev->channel_layout, false));
+ else
+ device_list.push_back(StreamDeviceInfo(
+ dev->type, dev->name, dev->id, false));
}
requester_->DevicesAccepted(label, device_list);

Powered by Google App Engine
This is Rietveld 408576698