Revert 3543
> Changing non-const reference arguments to pointers, ACM
>
> Part of refactoring of ACM, and recent lint-warnings.
> This CL changes non-const references in the ACM API to pointers.
>
> BUG=issue1372
>
> Review URL: https://webrtc-codereview.appspot.com/1103012
TBR=tina.legrand@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/1116004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@3544 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/webrtc/modules/utility/source/coder.cc b/webrtc/modules/utility/source/coder.cc
index f023d22..a610daa 100644
--- a/webrtc/modules/utility/source/coder.cc
+++ b/webrtc/modules/utility/source/coder.cc
@@ -76,13 +76,14 @@
return -1;
}
}
- return _acm->PlayoutData10Ms((WebRtc_UWord16)sampFreqHz, &decodedAudio);
+ return _acm->PlayoutData10Ms((WebRtc_UWord16)sampFreqHz,
+ (AudioFrame&)decodedAudio);
}
WebRtc_Word32 AudioCoder::PlayoutData(AudioFrame& decodedAudio,
WebRtc_UWord16& sampFreqHz)
{
- return _acm->PlayoutData10Ms(sampFreqHz, &decodedAudio);
+ return _acm->PlayoutData10Ms(sampFreqHz, (AudioFrame&)decodedAudio);
}
WebRtc_Word32 AudioCoder::Encode(const AudioFrame& audio,