diff --git a/webrtc/video_engine/vie_channel.cc b/webrtc/video_engine/vie_channel.cc index 9dc37c22b..975a8bf7a 100644 --- a/webrtc/video_engine/vie_channel.cc +++ b/webrtc/video_engine/vie_channel.cc @@ -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 { diff --git a/webrtc/video_engine/vie_receiver.cc b/webrtc/video_engine/vie_receiver.cc index 2270c070b..3ec0eed8c 100644 --- a/webrtc/video_engine/vie_receiver.cc +++ b/webrtc/video_engine/vie_receiver.cc @@ -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); diff --git a/webrtc/video_engine/vie_receiver.h b/webrtc/video_engine/vie_receiver.h index 056a104de..efa671279 100644 --- a/webrtc/video_engine/vie_receiver.h +++ b/webrtc/video_engine/vie_receiver.h @@ -42,8 +42,8 @@ class ViEReceiver : public RtpData { void RegisterSimulcastRtpRtcpModules(const std::list& 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();