mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-20 23:40:11 +00:00
Reuse buffers for video and audio renderer callbacks to prevent excessive object allocation during stream
This commit is contained in:
@@ -48,9 +48,9 @@ public class MoonBridge {
|
||||
}
|
||||
}
|
||||
|
||||
public static int bridgeDrSubmitDecodeUnit(byte[] frameData) {
|
||||
public static int bridgeDrSubmitDecodeUnit(byte[] frameData, int frameLength) {
|
||||
if (videoRenderer != null) {
|
||||
return videoRenderer.submitDecodeUnit(frameData);
|
||||
return videoRenderer.submitDecodeUnit(frameData, frameLength);
|
||||
}
|
||||
else {
|
||||
return DR_OK;
|
||||
|
||||
Reference in New Issue
Block a user