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:
parent
9aca5b34e1
commit
08994cc525
@ -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 {
|
||||
|
@ -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);
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user