diff --git a/media/webrtc/signaling/src/media-conduit/AudioConduit.cpp b/media/webrtc/signaling/src/media-conduit/AudioConduit.cpp index 7e415c6f60eb..7e7746102ed2 100644 --- a/media/webrtc/signaling/src/media-conduit/AudioConduit.cpp +++ b/media/webrtc/signaling/src/media-conduit/AudioConduit.cpp @@ -519,7 +519,7 @@ WebrtcAudioConduit::ReceivedRTCPPacket(const void *data, int len) { CSFLogDebug(logTag, "%s : channel %d",__FUNCTION__, mChannel); - if(mEngineReceiving) + if(mEngineTransmitting) { if(mPtrVoENetwork->ReceivedRTCPPacket(mChannel, data, len) == -1) { @@ -549,7 +549,7 @@ int WebrtcAudioConduit::SendPacket(int channel, const void* data, int len) if(mTransport && (mTransport->SendRtpPacket(data, len) == NS_OK)) { CSFLogDebug(logTag, "%s Sent RTP Packet ", __FUNCTION__); - return 0; + return len; } else { CSFLogError(logTag, "%s RTP Packet Send Failed ", __FUNCTION__); return -1; @@ -563,7 +563,7 @@ int WebrtcAudioConduit::SendRTCPPacket(int channel, const void* data, int len) if(mTransport && mTransport->SendRtcpPacket(data, len) == NS_OK) { CSFLogDebug(logTag, "%s Sent RTCP Packet ", __FUNCTION__); - return 0; + return len; } else { CSFLogError(logTag, "%s RTCP Packet Send Failed ", __FUNCTION__); return -1; diff --git a/media/webrtc/signaling/src/media-conduit/VideoConduit.cpp b/media/webrtc/signaling/src/media-conduit/VideoConduit.cpp index f48c7bd7d620..10d70107e8e7 100644 --- a/media/webrtc/signaling/src/media-conduit/VideoConduit.cpp +++ b/media/webrtc/signaling/src/media-conduit/VideoConduit.cpp @@ -563,7 +563,7 @@ WebrtcVideoConduit::ReceivedRTCPPacket(const void *data, int len) CSFLogError(logTag, " %s Channel %d, Len %d ", __FUNCTION__, mChannel, len); //Media Engine should be receiving already - if(mEngineReceiving) + if(mEngineTransmitting) { //let the engine know of RTCP packet to decode. if(mPtrViENetwork->ReceivedRTCPPacket(mChannel,data,len) == -1) @@ -591,7 +591,7 @@ int WebrtcVideoConduit::SendPacket(int channel, const void* data, int len) if(mTransport && (mTransport->SendRtpPacket(data, len) == NS_OK)) { CSFLogDebug(logTag, "%s Sent RTP Packet ", __FUNCTION__); - return 0; + return len; } else { CSFLogError(logTag, "%s Failed", __FUNCTION__); return -1; @@ -605,7 +605,7 @@ int WebrtcVideoConduit::SendRTCPPacket(int channel, const void* data, int len) if(mTransport && (mTransport->SendRtcpPacket(data, len) == NS_OK)) { CSFLogDebug(logTag, "%s Sent RTCP Packet ", __FUNCTION__); - return 0; + return len; } else { CSFLogError(logTag, "%s Failed", __FUNCTION__); return -1;