mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-02-16 10:31:07 +00:00
Fix recovery timeout if no output frames are being received
This commit is contained in:
@@ -783,12 +783,14 @@ public class MediaCodecDecoderRenderer extends VideoDecoderRenderer implements C
|
||||
e.printStackTrace();
|
||||
handleDecoderException(e);
|
||||
}
|
||||
} finally {
|
||||
doCodecRecoveryIfRequired(CR_FLAG_CHOREOGRAPHER);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Attempt codec recovery even if we have nothing to render right now. Recovery can still
|
||||
// be required even if the codec died before giving any output.
|
||||
doCodecRecoveryIfRequired(CR_FLAG_CHOREOGRAPHER);
|
||||
|
||||
// Request another callback for next frame
|
||||
Choreographer.getInstance().postFrameCallback(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user