package B0;

/* JADX INFO: renamed from: B0.m, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0026m implements U {

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public boolean f844q;

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public boolean f845r;

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public Object f846s;

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public Object f847t;

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public Object f848u;

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public Object f849v;

    @Override // B0.U
    public void a(u0.H h8) {
        U u8 = (U) this.f849v;
        if (u8 != null) {
            u8.a(h8);
            h8 = ((U) this.f849v).b();
        }
        ((s0) this.f846s).a(h8);
    }

    @Override // B0.U
    public u0.H b() {
        U u8 = (U) this.f849v;
        return u8 != null ? u8.b() : (u0.H) ((s0) this.f846s).f894u;
    }

    @Override // B0.U
    public boolean c() {
        if (this.f844q) {
            ((s0) this.f846s).getClass();
            return false;
        }
        U u8 = (U) this.f849v;
        u8.getClass();
        return u8.c();
    }

    public void d(AbstractC0020g abstractC0020g) {
        U u8;
        U uH = abstractC0020g.h();
        if (uH == null || uH == (u8 = (U) this.f849v)) {
            return;
        }
        if (u8 != null) {
            throw new C0030q(2, new IllegalStateException("Multiple renderer media clocks enabled."), 1000);
        }
        this.f849v = uH;
        this.f848u = abstractC0020g;
        ((D0.H) uH).a((u0.H) ((s0) this.f846s).f894u);
    }

    @Override // B0.U
    public long e() {
        if (this.f844q) {
            return ((s0) this.f846s).e();
        }
        U u8 = (U) this.f849v;
        u8.getClass();
        return u8.e();
    }
}
