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

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

Issue 312773002: Support for audio output devices for getMediaDevices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 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_proxy.cc
diff --git a/content/browser/renderer_host/media/media_stream_ui_proxy.cc b/content/browser/renderer_host/media/media_stream_ui_proxy.cc
index fdf7ccaf29268fdd6e5239d659ebdbb57cef2f6b..1c924241aa351435f55b1a1d297563202066c1a0 100644
--- a/content/browser/renderer_host/media/media_stream_ui_proxy.cc
+++ b/content/browser/renderer_host/media/media_stream_ui_proxy.cc
@@ -229,8 +229,8 @@ void FakeMediaStreamUIProxy::RequestAccess(
for (MediaStreamDevices::const_iterator it = devices_.begin();
it != devices_.end(); ++it) {
if (!accepted_audio &&
- IsAudioMediaType(request.audio_type) &&
- IsAudioMediaType(it->type) &&
+ IsAudioInputMediaType(request.audio_type) &&
+ IsAudioInputMediaType(it->type) &&
(request.requested_audio_device_id.empty() ||
request.requested_audio_device_id == it->id)) {
devices_to_use.push_back(*it);
« no previous file with comments | « content/browser/renderer_host/media/media_stream_manager.cc ('k') | content/public/common/media_stream_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698