diff --git a/media/webrtc/signaling/src/media-conduit/AudioConduit.cpp b/media/webrtc/signaling/src/media-conduit/AudioConduit.cpp old mode 100644 new mode 100755 index 9bda2abb282..b6a3e5e7e1d --- a/media/webrtc/signaling/src/media-conduit/AudioConduit.cpp +++ b/media/webrtc/signaling/src/media-conduit/AudioConduit.cpp @@ -762,21 +762,15 @@ WebrtcAudioConduit::ReceivedRTCPPacket(const void *data, int len) { CSFLogDebug(logTag, "%s : channel %d",__FUNCTION__, mChannel); - if(mEngineTransmitting) + if(mPtrVoENetwork->ReceivedRTCPPacket(mChannel, data, len) == -1) { - if(mPtrVoENetwork->ReceivedRTCPPacket(mChannel, data, len) == -1) + int error = mPtrVoEBase->LastError(); + CSFLogError(logTag, "%s RTCP Processing Error %d", __FUNCTION__, error); + if(error == VE_RTP_RTCP_MODULE_ERROR) { - int error = mPtrVoEBase->LastError(); - CSFLogError(logTag, "%s RTCP Processing Error %d", __FUNCTION__, error); - if(error == VE_RTP_RTCP_MODULE_ERROR) - { - return kMediaConduitRTPRTCPModuleError; - } - return kMediaConduitUnknownError; + return kMediaConduitRTPRTCPModuleError; } - } else { - CSFLogError(logTag, "Error: %s when not receiving", __FUNCTION__); - return kMediaConduitSessionNotInited; + return kMediaConduitUnknownError; } return kMediaConduitNoError; } diff --git a/media/webrtc/signaling/src/media-conduit/VideoConduit.cpp b/media/webrtc/signaling/src/media-conduit/VideoConduit.cpp old mode 100644 new mode 100755 index 9b8af31f7b5..b44f20c7c62 --- a/media/webrtc/signaling/src/media-conduit/VideoConduit.cpp +++ b/media/webrtc/signaling/src/media-conduit/VideoConduit.cpp @@ -1138,21 +1138,15 @@ WebrtcVideoConduit::ReceivedRTCPPacket(const void *data, int len) CSFLogDebug(logTag, " %s Channel %d, Len %d ", __FUNCTION__, mChannel, len); //Media Engine should be receiving already - if(mEngineTransmitting) + if(mPtrViENetwork->ReceivedRTCPPacket(mChannel,data,len) == -1) { - if(mPtrViENetwork->ReceivedRTCPPacket(mChannel,data,len) == -1) + int error = mPtrViEBase->LastError(); + CSFLogError(logTag, "%s RTP Processing Failed %d", __FUNCTION__, error); + if(error >= kViERtpRtcpInvalidChannelId && error <= kViERtpRtcpRtcpDisabled) { - int error = mPtrViEBase->LastError(); - CSFLogError(logTag, "%s RTP Processing Failed %d", __FUNCTION__, error); - if(error >= kViERtpRtcpInvalidChannelId && error <= kViERtpRtcpRtcpDisabled) - { - return kMediaConduitRTPProcessingFailed; - } - return kMediaConduitRTPRTCPModuleError; + return kMediaConduitRTPProcessingFailed; } - } else { - CSFLogError(logTag, "Error: %s when not receiving", __FUNCTION__); - return kMediaConduitSessionNotInited; + return kMediaConduitRTPRTCPModuleError; } return kMediaConduitNoError; } diff --git a/media/webrtc/trunk/webrtc/video_engine/vie_channel.cc b/media/webrtc/trunk/webrtc/video_engine/vie_channel.cc old mode 100644 new mode 100755 index 633556356e4..ce75ea357dd --- a/media/webrtc/trunk/webrtc/video_engine/vie_channel.cc +++ b/media/webrtc/trunk/webrtc/video_engine/vie_channel.cc @@ -1684,6 +1684,7 @@ int32_t ViEChannel::StartReceive() { return -1; } vie_receiver_.StartReceive(); + vie_receiver_.StartRTCPReceive(); // For receiving RTCP SR in one-way connections return 0; } @@ -1692,6 +1693,7 @@ int32_t ViEChannel::StopReceive() { __FUNCTION__); vie_receiver_.StopReceive(); + vie_receiver_.StopRTCPReceive(); StopDecodeThread(); vcm_.ResetDecoder(); return 0;