mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-02-16 02:20:55 +00:00
Allow reuse of the UDP ports to avoid conflicts with GFE
This commit is contained in:
@@ -85,7 +85,9 @@ public class AudioStream {
|
||||
|
||||
private void setupRtpSession() throws SocketException
|
||||
{
|
||||
rtp = new DatagramSocket(RTP_PORT);
|
||||
rtp = new DatagramSocket(null);
|
||||
rtp.setReuseAddress(true);
|
||||
rtp.bind(new InetSocketAddress(RTP_PORT));
|
||||
}
|
||||
|
||||
private void setupAudio()
|
||||
|
||||
@@ -119,7 +119,9 @@ public class VideoStream {
|
||||
|
||||
public void setupRtpSession() throws SocketException
|
||||
{
|
||||
rtp = new DatagramSocket(RTP_PORT);
|
||||
rtp = new DatagramSocket(null);
|
||||
rtp.setReuseAddress(true);
|
||||
rtp.bind(new InetSocketAddress(RTP_PORT));
|
||||
}
|
||||
|
||||
public void setupDecoderRenderer(VideoDecoderRenderer decRend, Object renderTarget, int drFlags) {
|
||||
|
||||
Reference in New Issue
Block a user