зеркало из https://github.com/mozilla/gecko-dev.git
Bug 831831: Don't ignore incoming RTCP; don't make webrtc code think no bytes were sent r=ekr
This commit is contained in:
Родитель
42d65d70f5
Коммит
e940f1fcfd
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче