Interrupt codec recovery when stopping the decoder

This commit is contained in:
Cameron Gutman
2022-09-18 18:53:37 -05:00
parent 9762f4c412
commit bc483edb29

View File

@@ -1019,6 +1019,12 @@ public class MediaCodecDecoderRenderer extends VideoDecoderRenderer implements C
rendererThread.interrupt();
}
// Stop any active codec recovery operations
synchronized (codecRecoveryMonitor) {
codecRecoveryType.set(CR_RECOVERY_TYPE_NONE);
codecRecoveryMonitor.notifyAll();
}
// Post a quit message to the Choreographer looper (if we have one)
if (choreographerHandler != null) {
choreographerHandler.post(new Runnable() {