mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-20 11:33:06 +00:00
Don't bind to the RTP ports explicitly. GFE doesn't force us to use these port numbers anymore.
This commit is contained in:
parent
22865b8af4
commit
d9c2d58519
@ -90,10 +90,8 @@ public class AudioStream {
|
|||||||
|
|
||||||
private void setupRtpSession() throws SocketException
|
private void setupRtpSession() throws SocketException
|
||||||
{
|
{
|
||||||
rtp = new DatagramSocket(null);
|
rtp = new DatagramSocket();
|
||||||
rtp.setReuseAddress(true);
|
|
||||||
rtp.setReceiveBufferSize(RTP_RECV_BUFFER);
|
rtp.setReceiveBufferSize(RTP_RECV_BUFFER);
|
||||||
rtp.bind(new InetSocketAddress(RTP_PORT));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean setupAudio()
|
private boolean setupAudio()
|
||||||
|
@ -127,10 +127,8 @@ public class VideoStream {
|
|||||||
|
|
||||||
public void setupRtpSession() throws SocketException
|
public void setupRtpSession() throws SocketException
|
||||||
{
|
{
|
||||||
rtp = new DatagramSocket(null);
|
rtp = new DatagramSocket();
|
||||||
rtp.setReuseAddress(true);
|
|
||||||
rtp.setReceiveBufferSize(RTP_RECV_BUFFER);
|
rtp.setReceiveBufferSize(RTP_RECV_BUFFER);
|
||||||
rtp.bind(new InetSocketAddress(RTP_PORT));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean setupDecoderRenderer(VideoDecoderRenderer decRend, Object renderTarget, int drFlags) {
|
public boolean setupDecoderRenderer(VideoDecoderRenderer decRend, Object renderTarget, int drFlags) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user