discord-jadx/app/src/main/java/c/a/q/m0/c/h.java

46 lines
1.8 KiB
Java

package c.a.q.m0.c;
import co.discord.media_engine.StreamParameters;
import com.discord.rtcconnection.mediaengine.MediaEngineConnection;
import d0.g0.s;
import d0.z.d.m;
import d0.z.d.o;
import java.util.Objects;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: MediaEngineConnectionLegacy.kt */
public final class h extends o implements Function1<MediaEngineConnection.d, Unit> {
public final /* synthetic */ String $streamId;
public final /* synthetic */ StreamParameters[] $streams;
public final /* synthetic */ long $userId;
public final /* synthetic */ int $videoSsrc;
public final /* synthetic */ e this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public h(e eVar, long j, String str, int i, StreamParameters[] streamParametersArr) {
super(1);
this.this$0 = eVar;
this.$userId = j;
this.$streamId = str;
this.$videoSsrc = i;
this.$streams = streamParametersArr;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public Unit invoke(MediaEngineConnection.d dVar) {
MediaEngineConnection.d dVar2 = dVar;
m.checkNotNullParameter(dVar2, "it");
long j = this.$userId;
String str = this.$streamId;
Integer intOrNull = str != null ? s.toIntOrNull(str) : null;
Integer num = this.this$0.d.get(Long.valueOf(this.$userId));
int intValue = num != null ? num.intValue() : 0;
int i = this.$videoSsrc;
Objects.requireNonNull(this.this$0);
dVar2.onVideo(j, intOrNull, intValue, i, i > 0 ? i + 1 : 0, this.$streams);
return Unit.a;
}
}