discord-jadx/app/src/main/java/c/i/a/c/d2/k.java

113 lines
3.6 KiB
Java

package c.i.a.c.d2;
import android.net.Uri;
import androidx.annotation.Nullable;
import c.d.b.a.a;
import c.i.a.c.a2.e;
import c.i.a.c.a2.h;
import c.i.a.c.a2.i;
import c.i.a.c.a2.j;
import c.i.a.c.a2.l;
import c.i.a.c.h2.f;
import c.i.a.c.i2.f0;
import com.airbnb.lottie.parser.AnimatableValueParser;
import com.google.android.exoplayer2.source.UnrecognizedInputFormatException;
import java.io.EOFException;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import java.util.Objects;
/* compiled from: BundledExtractorsAdapter */
public final class k {
public final l a;
@Nullable
public h b;
@Nullable
/* renamed from: c reason: collision with root package name */
public i f800c;
public k(l lVar) {
this.a = lVar;
}
public long a() {
i iVar = this.f800c;
if (iVar != null) {
return iVar.getPosition();
}
return -1;
}
/* JADX WARNING: Code restructure failed: missing block: B:17:0x003d, code lost:
if (r6.d != r11) goto L_0x005f;
*/
/* JADX WARNING: Code restructure failed: missing block: B:30:0x005c, code lost:
if (r6.d != r11) goto L_0x005f;
*/
/* JADX WARNING: Code restructure failed: missing block: B:31:0x005f, code lost:
r1 = false;
*/
public void b(f fVar, Uri uri, Map<String, List<String>> map, long j, long j2, j jVar) throws IOException {
e eVar = new e(fVar, j, j2);
this.f800c = eVar;
if (this.b == null) {
h[] b = this.a.b(uri, map);
boolean z2 = true;
if (b.length == 1) {
this.b = b[0];
} else {
int length = b.length;
int i = 0;
while (true) {
if (i >= length) {
break;
}
h hVar = b[i];
try {
if (hVar.b(eVar)) {
this.b = hVar;
AnimatableValueParser.D(true);
eVar.f = 0;
break;
}
if (this.b == null) {
}
boolean z3 = true;
AnimatableValueParser.D(z3);
eVar.f = 0;
i++;
} catch (EOFException unused) {
if (this.b == null) {
}
} catch (Throwable th) {
if (this.b == null && eVar.d != j) {
z2 = false;
}
AnimatableValueParser.D(z2);
eVar.f = 0;
throw th;
}
}
if (this.b == null) {
StringBuilder L = a.L("None of the available extractors (");
int i2 = f0.a;
StringBuilder sb = new StringBuilder();
for (int i3 = 0; i3 < b.length; i3++) {
sb.append(b[i3].getClass().getSimpleName());
if (i3 < b.length - 1) {
sb.append(", ");
}
}
L.append(sb.toString());
L.append(") could read the stream.");
String sb2 = L.toString();
Objects.requireNonNull(uri);
throw new UnrecognizedInputFormatException(sb2, uri);
}
}
this.b.f(jVar);
}
}
}