mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-21 03:52:48 +00:00
Allow reuse of the UDP ports to avoid conflicts with GFE
This commit is contained in:
parent
4f56dce9f7
commit
7f841c1fca
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user