mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-24 01:06:39 +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
|
// Our Surface is probably invalid, so just stop
|
||||||
stopping = true;
|
stopping = true;
|
||||||
codecRecoveryType.set(CR_RECOVERY_TYPE_NONE);
|
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