Protect APM in webkit builds.

Update libwertc AudioRtpSender::SetAudioSend with WEBRTC_WEBKIT_BUILD

This only introduces the WEBRTC_WEBKIT BUILD, inspired by WEBRTC_CHROMIUM_BUILD
macro. It is only defined by Webkit libwebrtc build system.
https://trac.webkit.org/changeset/210977

BUG=webrtc:7039

Review-Url: https://codereview.webrtc.org/2651273003
Cr-Commit-Position: refs/heads/master@{#16432}
This commit is contained in:
agouaillard
2017-02-03 06:37:05 -08:00
committed by Commit bot
parent 9d58d94585
commit b11fb25c12
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
Adam Fedor <adam.fedor@gmail.com>
Alexander Brauckmann <a.brauckmann@gmail.com>
Alexandre Gouaillard <agouaillard@gmail.com>
Andrew MacDonald <andrew@webrtc.org>
Anil Kumar <an1kumar@gmail.com>
Ben Strong <bstrong@gmail.com>

View File

@ -249,7 +249,7 @@ void AudioRtpSender::SetAudioSend() {
return;
}
cricket::AudioOptions options;
#if !defined(WEBRTC_CHROMIUM_BUILD)
#if !defined(WEBRTC_CHROMIUM_BUILD) && !defined(WEBRTC_WEBKIT_BUILD)
// TODO(tommi): Remove this hack when we move CreateAudioSource out of
// PeerConnection. This is a bit of a strange way to apply local audio
// options since it is also applied to all streams/channels, local or remote.