complain if mLineIndex can not be found when receiving candidates

This commit is contained in:
Daniel Gultsch 2021-03-16 18:52:25 +01:00
parent 8764d11cce
commit 2681ad82e1

View file

@ -288,6 +288,9 @@ public class JingleRtpConnection extends AbstractJingleConnection implements Web
}
final String sdpMid = content.getKey();
final int mLineIndex = indices.indexOf(sdpMid);
if (mLineIndex < 0) {
Log.w(Config.LOGTAG, "mLineIndex not found for " + sdpMid + ". available indices " + indices);
}
final IceCandidate iceCandidate = new IceCandidate(sdpMid, mLineIndex, sdp);
Log.d(Config.LOGTAG, "received candidate: " + iceCandidate);
this.webRTCWrapper.addIceCandidate(iceCandidate);