mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-02-16 10:31:07 +00:00
Trigger the decoder crash dialog if all recovery attempts fail
This commit is contained in:
@@ -606,6 +606,13 @@ public class MediaCodecDecoderRenderer extends VideoDecoderRenderer implements C
|
||||
// Our Surface is probably invalid, so just stop
|
||||
stopping = true;
|
||||
codecRecoveryType.set(CR_RECOVERY_TYPE_NONE);
|
||||
} catch (IllegalStateException e) {
|
||||
// If we failed to recover after all of these attempts, just crash
|
||||
if (!reportedCrash) {
|
||||
reportedCrash = true;
|
||||
crashListener.notifyCrash(e);
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user