Skip to content
Snippets Groups Projects
Commit 142f6f86 authored by Boris Grozev's avatar Boris Grozev
Browse files

Undoes the previous commit's effects for RTCP. That is, allows all RTCP packets

(regardless of their associated MediaStream's direction) to pass through
RTPTranslatorImpl
parent b454d1fe
No related branches found
No related tags found
No related merge requests found
...@@ -748,16 +748,16 @@ private synchronized int read( ...@@ -748,16 +748,16 @@ private synchronized int read(
= streamDesc.connectorDesc.streamRTPManagerDesc; = streamDesc.connectorDesc.streamRTPManagerDesc;
Format format = null; Format format = null;
/**
* Ignore packets coming from peers whose MediaStream's direction
* does not allow receiving.
*/
if (!streamRTPManagerDesc.streamRTPManager.getMediaStream()
.getDirection().allowsReceiving())
return read;
if (data) if (data)
{ {
/**
* Ignore RTP packets coming from peers whose MediaStream's direction
* does not allow receiving.
*/
if (!streamRTPManagerDesc.streamRTPManager.getMediaStream()
.getDirection().allowsReceiving())
return read;
/* /*
* Do the bytes in the specified buffer resemble (a header of) an * Do the bytes in the specified buffer resemble (a header of) an
* RTP packet? * RTP packet?
...@@ -1023,16 +1023,18 @@ private synchronized int doWrite( ...@@ -1023,16 +1023,18 @@ private synchronized int doWrite(
StreamRTPManagerDesc streamRTPManagerDesc StreamRTPManagerDesc streamRTPManagerDesc
= streamDesc.connectorDesc.streamRTPManagerDesc; = streamDesc.connectorDesc.streamRTPManagerDesc;
/* if (streamRTPManagerDesc != exclusion)
* Only write to OutputDataStream-s for which the associated
* MediaStream allows sending.
*/
if (streamRTPManagerDesc != exclusion
&& streamRTPManagerDesc.streamRTPManager
.getMediaStream().getDirection().allowsSending())
{ {
if (data) if (data)
{ {
/*
* Only write data packets to OutputDataStream-s for
* which the associated MediaStream allows sending.
*/
if (!streamRTPManagerDesc.streamRTPManager.
getMediaStream().getDirection().allowsSending())
return write;
if ((format != null) && (length > 0)) if ((format != null) && (length > 0))
{ {
Integer payloadType Integer payloadType
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment