| 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 9045b71b89c08b0106f1c010b27092030a6a815c..6145a6a46988c76d22589b11c983c52bfe4623b4 100644
|
| --- a/content/renderer/media/media_stream_dependency_factory.cc
|
| +++ b/content/renderer/media/media_stream_dependency_factory.cc
|
| @@ -32,6 +32,10 @@
|
| #include "net/socket/nss_ssl_util.h"
|
| #endif
|
|
|
| +#if defined(GOOGLE_TV)
|
| +#include "content/renderer/media/rtc_video_decoder_factory_tv.h"
|
| +#endif
|
| +
|
| namespace content {
|
|
|
| // Constant constraint keys which disables all audio constraints.
|
| @@ -423,10 +427,17 @@ bool MediaStreamDependencyFactory::CreatePeerConnectionFactory() {
|
| if (!pc_factory_.get()) {
|
| DCHECK(!audio_device_);
|
| audio_device_ = new WebRtcAudioDeviceImpl();
|
| +
|
| + cricket::WebRtcVideoDecoderFactory* decoder_factory = NULL;
|
| +#if defined(GOOGLE_TV)
|
| + decoder_factory = new RTCVideoDecoderFactoryTv();
|
| +#endif
|
| +
|
| scoped_refptr<webrtc::PeerConnectionFactoryInterface> factory(
|
| webrtc::CreatePeerConnectionFactory(worker_thread_,
|
| signaling_thread_,
|
| - audio_device_));
|
| + audio_device_,
|
| + decoder_factory));
|
| if (factory.get())
|
| pc_factory_ = factory;
|
| else
|
|
|