mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-06-17 14:21:08 +00:00
Handle decoder exceptions in dequeueInputBuffer
This commit is contained in:
@@ -358,8 +358,13 @@ public class MediaCodecDecoderRenderer extends VideoDecoderRenderer {
|
|||||||
|
|
||||||
startTime = MediaCodecHelper.getMonotonicMillis();
|
startTime = MediaCodecHelper.getMonotonicMillis();
|
||||||
|
|
||||||
while (rendererThread.isAlive() && index < 0 && !stopping) {
|
try {
|
||||||
index = videoDecoder.dequeueInputBuffer(10000);
|
while (rendererThread.isAlive() && index < 0 && !stopping) {
|
||||||
|
index = videoDecoder.dequeueInputBuffer(10000);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
handleDecoderException(e, null, 0);
|
||||||
|
return MediaCodec.INFO_TRY_AGAIN_LATER;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (index < 0) {
|
if (index < 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user