package com.google.android.exoplayer2.video;

import android.annotation.TargetApi;
import android.media.MediaCodec;
import android.media.MediaCodec.OnFrameRenderedListener;
import android.os.Handler;
import com.tencent.matrix.trace.core.AppMethodBeat;

@TargetApi(23)
final class c$b implements OnFrameRenderedListener {
    final /* synthetic */ c bsK;

    /* synthetic */ c$b(c cVar, MediaCodec mediaCodec, byte b) {
        this(cVar, mediaCodec);
    }

    private c$b(c cVar, MediaCodec mediaCodec) {
        this.bsK = cVar;
        AppMethodBeat.i(95996);
        mediaCodec.setOnFrameRenderedListener(this, new Handler());
        AppMethodBeat.o(95996);
    }

    public final void onFrameRendered(MediaCodec mediaCodec, long j, long j2) {
        AppMethodBeat.i(95997);
        if (this != this.bsK.bsG) {
            AppMethodBeat.o(95997);
            return;
        }
        this.bsK.tU();
        AppMethodBeat.o(95997);
    }
}
