Bug 831831: Don't ignore incoming RTCP; don't make webrtc code think no bytes were sent r=ekr

This commit is contained in:
Randell Jesup 2013-01-18 10:45:53 -05:00
Родитель 42d65d70f5
Коммит e940f1fcfd
2 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -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;

Просмотреть файл

@ -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;