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

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

Issue 2460303003: Checking RendererThreadImpl for null when creating media player. (Closed)
Patch Set: addressing review comments Created 4 years, 1 month 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 | « no previous file | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/audio_device_factory.cc
diff --git a/content/renderer/media/audio_device_factory.cc b/content/renderer/media/audio_device_factory.cc
index 2b06de485ee6941b49996526b7766cc5ec3813b3..1f8e161c108c62a41d8058e98344e1c00759f02b 100644
--- a/content/renderer/media/audio_device_factory.cc
+++ b/content/renderer/media/audio_device_factory.cc
@@ -72,6 +72,8 @@ scoped_refptr<media::SwitchableAudioRendererSink> NewMixableSink(
const std::string& device_id,
const url::Origin& security_origin) {
RenderThreadImpl* render_thread = RenderThreadImpl::current();
+ DCHECK(render_thread) << "RenderThreadImpl is not instantiated, or "
+ << "GetOutputDeviceInfo() is called on a wrong thread ";
return scoped_refptr<media::AudioRendererMixerInput>(
render_thread->GetAudioRendererMixerManager()->CreateInput(
render_frame_id, session_id, device_id, security_origin,
« no previous file with comments | « no previous file | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698