From b56f25232e456cba504a3ab26ac916d3d7d2fffc Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 10 Nov 2013 16:23:55 -0500 Subject: [PATCH] Start pinging earlier so Shield Proxy knows where to send the reference frame --- src/com/limelight/nvstream/NvVideoStream.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/com/limelight/nvstream/NvVideoStream.java b/src/com/limelight/nvstream/NvVideoStream.java index 2b9754cf..686303ad 100644 --- a/src/com/limelight/nvstream/NvVideoStream.java +++ b/src/com/limelight/nvstream/NvVideoStream.java @@ -155,6 +155,11 @@ public class NvVideoStream { return; } + // Start pinging before reading the first frame + // so Shield Proxy knows we're here and sends us + // the reference frame + startUdpPingThread(); + // Read the first frame to start the UDP video stream try { readFirstFrame(host); @@ -174,9 +179,6 @@ public class NvVideoStream { // Start decoding the data we're receiving startDecoderThread(); - // Start the keepalive ping to keep the stream going - startUdpPingThread(); - // Render the frames that are coming out of the decoder outputDisplayLoop(this); }