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

Unified Diff: chromecast/browser/media/media_pipeline_host.cc

Issue 2016053003: Add audio_device_id in mojo media ServiceFactory CreateRenderer api. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Minor change based on the comment Created 4 years, 5 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: chromecast/browser/media/media_pipeline_host.cc
diff --git a/chromecast/browser/media/media_pipeline_host.cc b/chromecast/browser/media/media_pipeline_host.cc
index 7e0cd04af9b54c76e51b000343da43777ffc9fdc..19c8ae67dbcc245d54b1844b5f1f3c1570696cb5 100644
--- a/chromecast/browser/media/media_pipeline_host.cc
+++ b/chromecast/browser/media/media_pipeline_host.cc
@@ -25,6 +25,7 @@
#include "chromecast/media/cma/pipeline/video_pipeline_impl.h"
#include "chromecast/public/media/media_pipeline_backend.h"
#include "chromecast/public/media/media_pipeline_device_params.h"
+#include "media/audio/audio_device_description.h"
namespace chromecast {
namespace media {
@@ -70,8 +71,10 @@ void MediaPipelineHost::Initialize(
MediaPipelineDeviceParams default_parameters(sync_type, task_runner_.get());
media_pipeline_->SetClient(client);
- media_pipeline_->Initialize(load_type,
- create_backend_cb.Run(default_parameters));
+ media_pipeline_->Initialize(
+ load_type,
+ create_backend_cb.Run(default_parameters,
+ ::media::AudioDeviceDescription::kDefaultDeviceId));
}
void MediaPipelineHost::SetAvPipe(
« no previous file with comments | « chromecast/browser/media/media_pipeline_backend_factory.h ('k') | content/renderer/media/media_interface_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698