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

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: merged 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
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 316d62ae7bba279dcc6bb3fdfc90ca31dd3cd028..797f884bc3dad84fdc65a67c6d9d0a17b903b138 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(

Powered by Google App Engine
This is Rietveld 408576698