From 09a1ef53a5388000e3ee3fa9878d984f95f567b6 Mon Sep 17 00:00:00 2001 From: "stefan@webrtc.org" Date: Thu, 11 Oct 2012 12:13:42 +0000 Subject: [PATCH] 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 --- src/modules/video_coding/main/source/video_coding_impl.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/video_coding/main/source/video_coding_impl.cc b/src/modules/video_coding/main/source/video_coding_impl.cc index 3e4e22b60..2b08ffd93 100644 --- a/src/modules/video_coding/main/source/video_coding_impl.cc +++ b/src/modules/video_coding/main/source/video_coding_impl.cc @@ -359,7 +359,7 @@ VideoCodingModuleImpl::SendCodec(VideoCodec* currentSendCodec) const { return VCM_PARAMETER_ERROR; } - return _codecDataBase.SendCodec(currentSendCodec); + return _codecDataBase.SendCodec(currentSendCodec) ? 0 : -1; } // Get the current send codec type @@ -643,7 +643,7 @@ VideoCodingModuleImpl::SetVideoProtection(VCMVideoProtection videoProtection, case kProtectionPeriodicKeyFrames: { CriticalSectionScoped cs(_sendCritSect); - return _codecDataBase.SetPeriodicKeyFrames(enable); + return _codecDataBase.SetPeriodicKeyFrames(enable) ? 0 : -1; break; } } @@ -1167,7 +1167,7 @@ VideoCodingModuleImpl::ReceiveCodec(VideoCodec* currentReceiveCodec) const { return VCM_PARAMETER_ERROR; } - return _codecDataBase.ReceiveCodec(currentReceiveCodec); + return _codecDataBase.ReceiveCodec(currentReceiveCodec) ? 0 : -1; } // Get current received codec