diff --git a/api/peerconnectioninterface.h b/api/peerconnectioninterface.h index 0fc2a2b5b8..593084efd9 100644 --- a/api/peerconnectioninterface.h +++ b/api/peerconnectioninterface.h @@ -1327,6 +1327,7 @@ class PeerConnectionFactoryInterface : public rtc::RefCountInterface { ~PeerConnectionFactoryInterface() override = default; }; +#if defined(USE_BUILTIN_SW_CODECS) // Create a new instance of PeerConnectionFactoryInterface. // // This method relies on the thread it's called on as the "signaling thread" @@ -1403,6 +1404,7 @@ rtc::scoped_refptr CreatePeerConnectionFactory( std::unique_ptr fec_controller_factory, std::unique_ptr network_controller_factory = nullptr); +#endif // Create a new instance of PeerConnectionFactoryInterface with optional video // codec factories. These video factories represents all video codecs, i.e. no @@ -1421,6 +1423,7 @@ rtc::scoped_refptr CreatePeerConnectionFactory( rtc::scoped_refptr audio_mixer, rtc::scoped_refptr audio_processing); +#if defined(USE_BUILTIN_SW_CODECS) // Create a new instance of PeerConnectionFactoryInterface with external audio // mixer. // @@ -1453,6 +1456,7 @@ CreatePeerConnectionFactory( default_adm, audio_encoder_factory, audio_decoder_factory, video_encoder_factory, video_decoder_factory); } +#endif // This is a lower-level version of the CreatePeerConnectionFactory functions // above. It's implemented in the "peerconnection" build target, whereas the diff --git a/media/engine/webrtcmediaengine.h b/media/engine/webrtcmediaengine.h index b9927b1a9d..d82eccf9dc 100644 --- a/media/engine/webrtcmediaengine.h +++ b/media/engine/webrtcmediaengine.h @@ -41,6 +41,7 @@ class WebRtcMediaEngineFactory { // // TODO(deadbeef): Change these to return an std::unique_ptr<>, to indicate // that the caller owns the returned object. +#if defined(USE_BUILTIN_SW_CODECS) static MediaEngineInterface* Create( webrtc::AudioDeviceModule* adm, const rtc::scoped_refptr& @@ -59,6 +60,7 @@ class WebRtcMediaEngineFactory { WebRtcVideoDecoderFactory* video_decoder_factory, rtc::scoped_refptr audio_mixer, rtc::scoped_refptr apm); +#endif // Create a MediaEngineInterface with optional video codec factories. These // video factories represents all video codecs, i.e. no extra internal video