mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-19 23:10:11 +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();
|
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)
|
// Post a quit message to the Choreographer looper (if we have one)
|
||||||
if (choreographerHandler != null) {
|
if (choreographerHandler != null) {
|
||||||
choreographerHandler.post(new Runnable() {
|
choreographerHandler.post(new Runnable() {
|
||||||
|
|||||||
Reference in New Issue
Block a user