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

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

Issue 15984016: Call scoped_refptr<T>::get() rather than relying on implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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/gpu/input_event_filter.cc ('k') | content/renderer/media/rtc_peer_connection_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/media_stream_dependency_factory.cc
diff --git a/content/renderer/media/media_stream_dependency_factory.cc b/content/renderer/media/media_stream_dependency_factory.cc
index 47d5b6be7046287d48e7867639ad18dc5a621433..f9b10fb41ae7a91b7a5beed015d304de3579ece8 100644
--- a/content/renderer/media/media_stream_dependency_factory.cc
+++ b/content/renderer/media/media_stream_dependency_factory.cc
@@ -282,7 +282,7 @@ void MediaStreamDependencyFactory::CreateNativeMediaSources(
source_data->SetVideoSource(
CreateLocalVideoSource(source_data->device_info().session_id,
is_screencast,
- &native_video_constraints));
+ &native_video_constraints).get());
source_observer->AddSource(source_data->video_source());
}
@@ -320,7 +320,7 @@ void MediaStreamDependencyFactory::CreateNativeMediaSources(
// Creates a LocalAudioSource object which holds audio options.
source_data->SetLocalAudioSource(
- CreateLocalAudioSource(&native_audio_constraints));
+ CreateLocalAudioSource(&native_audio_constraints).get());
source_observer->AddSource(source_data->local_audio_source());
}
@@ -622,7 +622,7 @@ bool MediaStreamDependencyFactory::CreateWebAudioSource(
// third_party/Libjingle.
WebAudioConstraints webaudio_audio_constraints_all_false;
source_data->SetLocalAudioSource(
- CreateLocalAudioSource(&webaudio_audio_constraints_all_false));
+ CreateLocalAudioSource(&webaudio_audio_constraints_all_false).get());
source->setExtraData(source_data);
// Replace the default source with WebAudio as source instead.
« no previous file with comments | « content/renderer/gpu/input_event_filter.cc ('k') | content/renderer/media/rtc_peer_connection_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698