| 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 f15f1036fbd1830f86fdd17e2544e55cc306aff6..b32348fc774217b4e9c64a89578bf7275b644e19 100644
|
| --- a/content/renderer/media/media_stream_dependency_factory.cc
|
| +++ b/content/renderer/media/media_stream_dependency_factory.cc
|
| @@ -497,10 +497,14 @@ bool MediaStreamDependencyFactory::CreatePeerConnectionFactory() {
|
|
|
| const CommandLine* cmd_line = CommandLine::ForCurrentProcess();
|
| if (cmd_line->HasSwitch(switches::kEnableWebRtcHWDecoding)) {
|
| + scoped_refptr<base::MessageLoopProxy> media_loop_proxy =
|
| + RenderThreadImpl::current()->GetMediaThreadMessageLoopProxy();
|
| scoped_refptr<media::GpuVideoDecoder::Factories> gpu_factories =
|
| - RenderThreadImpl::current()->GetGpuFactories();
|
| - if (gpu_factories.get() != NULL)
|
| - decoder_factory.reset(new RTCVideoDecoderFactory(gpu_factories));
|
| + RenderThreadImpl::current()->GetGpuFactories(media_loop_proxy);
|
| + if (gpu_factories.get() != NULL) {
|
| + decoder_factory.reset(
|
| + new RTCVideoDecoderFactory(media_loop_proxy, gpu_factories));
|
| + }
|
| }
|
| #if defined(GOOGLE_TV)
|
| // PeerConnectionFactory will hold the ownership of this
|
|
|