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

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: Fix after review from Chris 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 ec3fec0d519a74647379a4903c8d9613bd28165c..0158fa00289063c0503f1cdac925dabbf3de84a0 100644
--- a/content/browser/renderer_host/media/media_stream_ui_controller.cc
+++ b/content/browser/renderer_host/media/media_stream_ui_controller.cc
@@ -202,8 +202,9 @@ 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));
+ device_list.push_back(StreamDeviceInfo(
+ dev->type, dev->name, dev->id,
+ dev->sample_rate, dev->channel_layout, false));
}
requester_->DevicesAccepted(label, device_list);

Powered by Google App Engine
This is Rietveld 408576698