Chromium Code Reviews| Index: content/renderer/media/user_media_client_impl.cc |
| diff --git a/content/renderer/media/user_media_client_impl.cc b/content/renderer/media/user_media_client_impl.cc |
| index 15e096b6469d9b1bc061d68be7d41c99bb18666c..bba06bc27d36b69ce4e31286316c2483ecc499db 100644 |
| --- a/content/renderer/media/user_media_client_impl.cc |
| +++ b/content/renderer/media/user_media_client_impl.cc |
| @@ -179,10 +179,14 @@ void UserMediaClientImpl::requestUserMedia( |
| controls.audio.requested = true; |
| // Check if this input device should be used to select a matching output |
| // device for audio rendering. |
| - if (!user_media_request.audioConstraints() |
| - .basic() |
| - .renderToAssociatedSink.matches(false)) { |
| - enable_automatic_output_device_selection = true; |
| + enable_automatic_output_device_selection = true; // On by default. |
| + for (auto advanced_constraint : |
|
tommi (sloooow) - chröme
2016/02/26 13:12:56
const auto&
o1ka
2016/02/26 13:21:06
Done.
|
| + user_media_request.audioConstraints().advanced()) { |
| + if (advanced_constraint.renderToAssociatedSink.hasExact()) { |
| + enable_automatic_output_device_selection = |
| + advanced_constraint.renderToAssociatedSink.exact(); |
| + break; |
| + } |
| } |
| } |
| if (user_media_request.video()) { |