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:
parent
fa7e8682c3
commit
09a1ef53a5
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user