complain if mLineIndex can not be found when receiving candidates
This commit is contained in:
parent
8764d11cce
commit
2681ad82e1
|
@ -288,6 +288,9 @@ public class JingleRtpConnection extends AbstractJingleConnection implements Web
|
||||||
}
|
}
|
||||||
final String sdpMid = content.getKey();
|
final String sdpMid = content.getKey();
|
||||||
final int mLineIndex = indices.indexOf(sdpMid);
|
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);
|
final IceCandidate iceCandidate = new IceCandidate(sdpMid, mLineIndex, sdp);
|
||||||
Log.d(Config.LOGTAG, "received candidate: " + iceCandidate);
|
Log.d(Config.LOGTAG, "received candidate: " + iceCandidate);
|
||||||
this.webRTCWrapper.addIceCandidate(iceCandidate);
|
this.webRTCWrapper.addIceCandidate(iceCandidate);
|
||||||
|
|
Loading…
Reference in a new issue