From d9c2d58519cd83de699b1a7c2cef95201789baef Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 7 Oct 2014 23:14:48 -0700 Subject: [PATCH] Don't bind to the RTP ports explicitly. GFE doesn't force us to use these port numbers anymore. --- .../src/com/limelight/nvstream/av/audio/AudioStream.java | 4 +--- .../src/com/limelight/nvstream/av/video/VideoStream.java | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/moonlight-common/src/com/limelight/nvstream/av/audio/AudioStream.java b/moonlight-common/src/com/limelight/nvstream/av/audio/AudioStream.java index e80e8d7b..f31af7fe 100644 --- a/moonlight-common/src/com/limelight/nvstream/av/audio/AudioStream.java +++ b/moonlight-common/src/com/limelight/nvstream/av/audio/AudioStream.java @@ -90,10 +90,8 @@ public class AudioStream { private void setupRtpSession() throws SocketException { - rtp = new DatagramSocket(null); - rtp.setReuseAddress(true); + rtp = new DatagramSocket(); rtp.setReceiveBufferSize(RTP_RECV_BUFFER); - rtp.bind(new InetSocketAddress(RTP_PORT)); } private boolean setupAudio() diff --git a/moonlight-common/src/com/limelight/nvstream/av/video/VideoStream.java b/moonlight-common/src/com/limelight/nvstream/av/video/VideoStream.java index d8cf051f..0f831396 100644 --- a/moonlight-common/src/com/limelight/nvstream/av/video/VideoStream.java +++ b/moonlight-common/src/com/limelight/nvstream/av/video/VideoStream.java @@ -127,10 +127,8 @@ public class VideoStream { public void setupRtpSession() throws SocketException { - rtp = new DatagramSocket(null); - rtp.setReuseAddress(true); + rtp = new DatagramSocket(); rtp.setReceiveBufferSize(RTP_RECV_BUFFER); - rtp.bind(new InetSocketAddress(RTP_PORT)); } public boolean setupDecoderRenderer(VideoDecoderRenderer decRend, Object renderTarget, int drFlags) {