mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-10-25 13:31:55 +00:00
Allow reuse of the UDP ports to avoid conflicts with GFE
This commit is contained in:
1 parent
4f56dce9f7
commit
7f841c1fca
2 files changed
+6
-2
No files matched your search
@@ -85,7 +85,9 @@ public class AudioStream {
|
|||||||
|
|
||||||
private void setupRtpSession() throws SocketException
|
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()
|
private void setupAudio()
|
||||||
|
|||||||
@@ -119,7 +119,9 @@ public class VideoStream {
|
|||||||
|
|
||||||
public void setupRtpSession() throws SocketException
|
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) {
|
public void setupDecoderRenderer(VideoDecoderRenderer decRend, Object renderTarget, int drFlags) {
|
||||||
|
|||||||
Reference in new issue
Block a user