Fix for issues with in r2906.

TBR=henrik.lundin@webrtc.org

BUG=

Review URL: https://webrtc-codereview.appspot.com/858013

git-svn-id: http://webrtc.googlecode.com/svn/trunk@2907 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
stefan@webrtc.org 2012-10-11 12:13:42 +00:00
parent fa7e8682c3
commit 09a1ef53a5

View File

@ -359,7 +359,7 @@ VideoCodingModuleImpl::SendCodec(VideoCodec* currentSendCodec) const
{ {
return VCM_PARAMETER_ERROR; return VCM_PARAMETER_ERROR;
} }
return _codecDataBase.SendCodec(currentSendCodec); return _codecDataBase.SendCodec(currentSendCodec) ? 0 : -1;
} }
// Get the current send codec type // Get the current send codec type
@ -643,7 +643,7 @@ VideoCodingModuleImpl::SetVideoProtection(VCMVideoProtection videoProtection,
case kProtectionPeriodicKeyFrames: case kProtectionPeriodicKeyFrames:
{ {
CriticalSectionScoped cs(_sendCritSect); CriticalSectionScoped cs(_sendCritSect);
return _codecDataBase.SetPeriodicKeyFrames(enable); return _codecDataBase.SetPeriodicKeyFrames(enable) ? 0 : -1;
break; break;
} }
} }
@ -1167,7 +1167,7 @@ VideoCodingModuleImpl::ReceiveCodec(VideoCodec* currentReceiveCodec) const
{ {
return VCM_PARAMETER_ERROR; return VCM_PARAMETER_ERROR;
} }
return _codecDataBase.ReceiveCodec(currentReceiveCodec); return _codecDataBase.ReceiveCodec(currentReceiveCodec) ? 0 : -1;
} }
// Get current received codec // Get current received codec