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

Unified Diff: content/renderer/media/user_media_client_impl.cc

Issue 883293005: Cast: Basic cast_receiver API for chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed extra BUILD.gn line Created 5 years, 10 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
« no previous file with comments | « content/renderer/media/media_stream_video_source.h ('k') | content/renderer/media/video_capture_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 756f3a251ea169c5e1cb1007cf0b78c66cfd8831..1ec79a0a2ce0c4d57845eee22407f2f5915bb929 100644
--- a/content/renderer/media/user_media_client_impl.cc
+++ b/content/renderer/media/user_media_client_impl.cc
@@ -580,10 +580,12 @@ void UserMediaClientImpl::InitializeSourceObject(
MediaStreamVideoSource* UserMediaClientImpl::CreateVideoSource(
const StreamDeviceInfo& device,
const MediaStreamSource::SourceStoppedCallback& stop_callback) {
- return new content::MediaStreamVideoCapturerSource(
- device,
- stop_callback,
- scoped_ptr<VideoCapturerDelegate>(new VideoCapturerDelegate(device)));
+ content::MediaStreamVideoCapturerSource* ret =
+ new content::MediaStreamVideoCapturerSource(
+ stop_callback,
+ make_scoped_ptr(new VideoCapturerDelegate(device)));
+ ret->SetDeviceInfo(device);
+ return ret;
}
void UserMediaClientImpl::CreateVideoTracks(
« no previous file with comments | « content/renderer/media/media_stream_video_source.h ('k') | content/renderer/media/video_capture_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698