Map the stopped transceiver direction on Android

Fixes IllegalArgumentException when native calls fromNativeIndex.

Bug: webrtc:14320
Change-Id: I0f0717852abd009e17c6f67639f1bf2262df8dfd
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/270622
Commit-Queue: Xavier Lepaul‎ <xalep@webrtc.org>
Reviewed-by: Xavier Lepaul‎ <xalep@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#37694}
This commit is contained in:
Saúl Ibarra Corretgé 2022-08-04 15:28:03 +02:00 committed by WebRTC LUCI CQ
parent a0e090ff5a
commit 043a80320c

View file

@ -38,7 +38,8 @@ public class RtpTransceiver {
SEND_RECV(0), SEND_RECV(0),
SEND_ONLY(1), SEND_ONLY(1),
RECV_ONLY(2), RECV_ONLY(2),
INACTIVE(3); INACTIVE(3),
STOPPED(4);
private final int nativeIndex; private final int nativeIndex;