mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-02-16 10:31:07 +00:00
Interrupt codec recovery when stopping the decoder
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user