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

Fix a failure to set the SSRCFactory when an RTPTranslator is used, resulting...

Fix a failure to set the SSRCFactory when an RTPTranslator is used, resulting in the SSRC of a video MediaStream changing when the stream starts. Reported by Thomas Kuntz.
parent fa7d7fc2
No related branches found
No related tags found
No related merge requests found
......@@ -259,14 +259,23 @@ public void removeSessionListener(SessionListener listener)
*/
public void setSSRCFactory(SSRCFactory ssrcFactory)
{
RTPManager m = this.manager;
if (m instanceof org.jitsi.impl.neomedia.jmfext.media.rtp.RTPSessionMgr)
if (translator == null)
{
org.jitsi.impl.neomedia.jmfext.media.rtp.RTPSessionMgr sm
= (org.jitsi.impl.neomedia.jmfext.media.rtp.RTPSessionMgr) m;
RTPManager m = this.manager;
sm.setSSRCFactory(ssrcFactory);
if (m instanceof
org.jitsi.impl.neomedia.jmfext.media.rtp.RTPSessionMgr)
{
org.jitsi.impl.neomedia.jmfext.media.rtp.RTPSessionMgr sm
= (org.jitsi.impl.neomedia.jmfext.media.rtp.RTPSessionMgr) m;
sm.setSSRCFactory(ssrcFactory);
}
}
else
{
translator.setSSRCFactory(ssrcFactory);
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment