From b76495fa8f8512a580acbc9dfe4037c83dede5f6 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 5 Aug 2014 22:28:04 -0700 Subject: [PATCH] Send the newer loss stats packet --- .../src/com/limelight/nvstream/control/ControlStream.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/moonlight-common/src/com/limelight/nvstream/control/ControlStream.java b/moonlight-common/src/com/limelight/nvstream/control/ControlStream.java index 54171b54..ffe3fe16 100644 --- a/moonlight-common/src/com/limelight/nvstream/control/ControlStream.java +++ b/moonlight-common/src/com/limelight/nvstream/control/ControlStream.java @@ -31,7 +31,7 @@ public class ControlStream implements ConnectionStatusListener { public static final short PPAYLEN_RESYNC = 24; public static final short PTYPE_LOSS_STATS = 0x140c; - public static final short PPAYLEN_LOSS_STATS = 20; + public static final short PPAYLEN_LOSS_STATS = 32; // Currently unused public static final short PTYPE_FRAME_STATS = 0x1417; @@ -98,6 +98,9 @@ public class ControlStream implements ConnectionStatusListener { bb.putInt(LOSS_REPORT_INTERVAL_MS); // Time since last report in milliseconds bb.putInt(1000); bb.putLong(currentFrame); // Last successfully received frame + bb.putInt(0); + bb.putInt(0); + bb.putInt(0x14); sendPacket(new NvCtlPacket(PTYPE_LOSS_STATS, PPAYLEN_LOSS_STATS, bb.array())); }