From 1e4c65e7bb89b13ca029041e2f58a24ecd928297 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 17 Aug 2014 20:56:56 -0700 Subject: [PATCH] Send the new loss stats packet for GFE 2.1.1 --- limelight-common/ControlStream.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/limelight-common/ControlStream.c b/limelight-common/ControlStream.c index 1060fdb..9a3e651 100644 --- a/limelight-common/ControlStream.c +++ b/limelight-common/ControlStream.c @@ -31,7 +31,7 @@ static const int PPAYLOAD_START_STREAM_B[4] = { 0, 0, 0, 0xa }; // FIXME: Little #define PPAYLEN_RESYNC 24 #define PTYPE_LOSS_STATS 0x140c -#define PPAYLEN_LOSS_STATS 20 +#define PPAYLEN_LOSS_STATS 32 #define PTYPE_FRAME_STATS 0x1417 #define PPAYLEN_FRAME_STATS 64 @@ -141,6 +141,9 @@ static void lossStatsThreadFunc(void* context) { BbPutInt(&byteBuffer, LOSS_REPORT_INTERVAL_MS); BbPutInt(&byteBuffer, 1000); BbPutLong(&byteBuffer, currentFrame); + BbPutInt(&byteBuffer, 0); + BbPutInt(&byteBuffer, 0); + BbPutInt(&byteBuffer, 0x14); // Send the message (and don't expect a response) if (!sendMessageAndForget(PTYPE_LOSS_STATS,