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( |