Fix a return value mismatch introduced in r4129.

TBR=mflodman@webrtc.org
TEST=vie_auto_test, trybots

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

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4131 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
stefan@webrtc.org 2013-05-29 13:28:21 +00:00
parent 9aca5b34e1
commit 08994cc525
3 changed files with 6 additions and 6 deletions

View File

@ -873,7 +873,7 @@ int ViEChannel::SetSendTimestampOffsetStatus(bool enable, int id) {
}
int ViEChannel::SetReceiveTimestampOffsetStatus(bool enable, int id) {
return vie_receiver_.SetReceiveTimestampOffsetStatus(enable, id);
return vie_receiver_.SetReceiveTimestampOffsetStatus(enable, id) ? 0 : -1;
}
int ViEChannel::SetSendAbsoluteSendTimeStatus(bool enable, int id) {
@ -909,7 +909,7 @@ int ViEChannel::SetSendAbsoluteSendTimeStatus(bool enable, int id) {
int ViEChannel::SetReceiveAbsoluteSendTimeStatus(bool enable, int id) {
receive_absolute_send_time_enabled_ = enable;
return vie_receiver_.SetReceiveAbsoluteSendTimeStatus(enable, id);
return vie_receiver_.SetReceiveAbsoluteSendTimeStatus(enable, id) ? 0 : -1;
}
bool ViEChannel::GetReceiveAbsoluteSendTimeStatus() const {

View File

@ -89,7 +89,7 @@ void ViEReceiver::RegisterSimulcastRtpRtcpModules(
}
}
int ViEReceiver::SetReceiveTimestampOffsetStatus(bool enable, int id) {
bool ViEReceiver::SetReceiveTimestampOffsetStatus(bool enable, int id) {
if (enable) {
return rtp_header_parser_->RegisterRtpHeaderExtension(
kRtpExtensionTransmissionTimeOffset, id);
@ -99,7 +99,7 @@ int ViEReceiver::SetReceiveTimestampOffsetStatus(bool enable, int id) {
}
}
int ViEReceiver::SetReceiveAbsoluteSendTimeStatus(bool enable, int id) {
bool ViEReceiver::SetReceiveAbsoluteSendTimeStatus(bool enable, int id) {
if (enable) {
return rtp_header_parser_->RegisterRtpHeaderExtension(
kRtpExtensionAbsoluteSendTime, id);

View File

@ -42,8 +42,8 @@ class ViEReceiver : public RtpData {
void RegisterSimulcastRtpRtcpModules(const std::list<RtpRtcp*>& rtp_modules);
int SetReceiveTimestampOffsetStatus(bool enable, int id);
int SetReceiveAbsoluteSendTimeStatus(bool enable, int id);
bool SetReceiveTimestampOffsetStatus(bool enable, int id);
bool SetReceiveAbsoluteSendTimeStatus(bool enable, int id);
void StartReceive();
void StopReceive();