| 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 0f626513a4a7bb327a440672b3cc5df1650c7619..1b74462c47472642053b5345c60d8e051144ce87 100644
|
| --- a/content/renderer/media/media_stream_dependency_factory.cc
|
| +++ b/content/renderer/media/media_stream_dependency_factory.cc
|
| @@ -33,6 +33,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.
|
| @@ -202,6 +206,9 @@ MediaStreamDependencyFactory::MediaStreamDependencyFactory(
|
| VideoCaptureImplManager* vc_manager,
|
| P2PSocketDispatcher* p2p_socket_dispatcher)
|
| : network_manager_(NULL),
|
| +#if defined(GOOGLE_TV)
|
| + decoder_factory_tv_(NULL),
|
| +#endif
|
| vc_manager_(vc_manager),
|
| p2p_socket_dispatcher_(p2p_socket_dispatcher),
|
| signaling_thread_(NULL),
|
| @@ -459,9 +466,20 @@ bool MediaStreamDependencyFactory::CreatePeerConnectionFactory() {
|
| if (!pc_factory_) {
|
| DCHECK(!audio_device_);
|
| audio_device_ = new WebRtcAudioDeviceImpl();
|
| +
|
| + cricket::WebRtcVideoDecoderFactory* decoder_factory = NULL;
|
| +#if defined(GOOGLE_TV)
|
| + // PeerConnectionFactory will hold the ownership of this
|
| + // VideoDecoderFactory.
|
| + decoder_factory = decoder_factory_tv_ = new RTCVideoDecoderFactoryTv;
|
| +#endif
|
| +
|
| scoped_refptr<webrtc::PeerConnectionFactoryInterface> factory(
|
| - webrtc::CreatePeerConnectionFactory(
|
| - worker_thread_, signaling_thread_, audio_device_, NULL, NULL));
|
| + webrtc::CreatePeerConnectionFactory(worker_thread_,
|
| + signaling_thread_,
|
| + audio_device_,
|
| + NULL,
|
| + decoder_factory));
|
| if (factory)
|
| pc_factory_ = factory;
|
| else
|
|
|