Do not apply "toLowerCase()" on already lower case canonical form

The canonical form is already in lower case (see
https://webrtc.googlesource.com/src/+/79d8df02/sdk/android/api/org/webrtc/SessionDescription.java#29),
so there is no need to apply "toLowerCase()".

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
Daniel Calviño Sánchez 2022-11-07 00:35:49 +01:00 committed by Marcel Hibbe
parent 473b8b238d
commit 58e371c98c
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B

View file

@ -494,7 +494,7 @@ public class PeerConnectionWrapper {
EventBus.getDefault().post(new SessionDescriptionSendEvent(sessionDescriptionWithPreferredCodec, sessionId,
sessionDescription.type.canonicalForm().toLowerCase(), null, videoStreamType));
sessionDescription.type.canonicalForm(), null, videoStreamType));
if (peerConnection != null) {
peerConnection.setLocalDescription(magicSdpObserver, sessionDescriptionWithPreferredCodec);