Correct parameters in WEBRTC_TRACE functions.
Incorrect number of parameters resulted in complaints about using unitialized memory when outputing with sprintf. Review URL: http://webrtc-codereview.appspot.com/89008 git-svn-id: http://webrtc.googlecode.com/svn/trunk@277 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
210d9fa08b
commit
dcfa09ac61
@ -134,7 +134,8 @@ int ViECodecImpl::GetCodec(const unsigned char listNumber,
|
||||
VideoCodec& videoCodec) const
|
||||
{
|
||||
WEBRTC_TRACE(webrtc::kTraceApiCall, webrtc::kTraceVideo, ViEId(_instanceId),
|
||||
"%s(listNumber: %d, codecType: %d)", __FUNCTION__, listNumber);
|
||||
"%s(listNumber: %d, codecType: %d)", __FUNCTION__,
|
||||
listNumber, videoCodec.codecType);
|
||||
if (!IsInitialized())
|
||||
{
|
||||
SetLastError(kViENotInitialized);
|
||||
|
@ -312,7 +312,7 @@ WebRtc_Word32 ViEEncoder::SetEncoder(const webrtc::VideoCodec& videoCodec)
|
||||
{
|
||||
WEBRTC_TRACE(webrtc::kTraceInfo, webrtc::kTraceVideo,
|
||||
ViEId(_engineId, _channelId),
|
||||
"%s: CodecType: %d, width: %u, height: %u, maxPayloadLength: %u",
|
||||
"%s: CodecType: %d, width: %u, height: %u",
|
||||
__FUNCTION__, videoCodec.codecType, videoCodec.width,
|
||||
videoCodec.height);
|
||||
|
||||
|
@ -206,10 +206,10 @@ int ViENetworkImpl::SetSendDestination(const int videoChannel,
|
||||
{
|
||||
WEBRTC_TRACE(webrtc::kTraceApiCall, webrtc::kTraceVideo,
|
||||
ViEId(_instanceId, videoChannel),
|
||||
"%s(channel: %d, ipAddress: x, rtpPort: %u, rtcpPort: %u, "
|
||||
"%s(channel: %d, ipAddress: %s, rtpPort: %u, rtcpPort: %u, "
|
||||
"sourceRtpPort: %u, sourceRtcpPort: %u)",
|
||||
__FUNCTION__, rtpPort, rtcpPort, sourceRtpPort,
|
||||
sourceRtcpPort);
|
||||
__FUNCTION__, videoChannel, ipAddress, rtpPort, rtcpPort,
|
||||
sourceRtpPort, sourceRtcpPort);
|
||||
if (!IsInitialized())
|
||||
{
|
||||
SetLastError(kViENotInitialized);
|
||||
|
Loading…
x
Reference in New Issue
Block a user