diff --git a/limelight-common/AudioStream.c b/limelight-common/AudioStream.c index f1b3ec4..11e0e1c 100644 --- a/limelight-common/AudioStream.c +++ b/limelight-common/AudioStream.c @@ -196,7 +196,7 @@ int startAudioStream(void) { callbacks.init(); - rtpSocket = bindUdpSocket(RTP_PORT); + rtpSocket = bindUdpSocket(); if (rtpSocket == INVALID_SOCKET) { return LastSocketError(); } diff --git a/limelight-common/PlatformSockets.c b/limelight-common/PlatformSockets.c index d9f4ffb..d754c12 100644 --- a/limelight-common/PlatformSockets.c +++ b/limelight-common/PlatformSockets.c @@ -1,7 +1,7 @@ #include "PlatformSockets.h" #include "Limelight-internal.h" -SOCKET bindUdpSocket(unsigned short port) { +SOCKET bindUdpSocket(void) { SOCKET s; struct sockaddr_in addr; int val; @@ -14,7 +14,6 @@ SOCKET bindUdpSocket(unsigned short port) { memset(&addr, 0, sizeof(addr)); addr.sin_family = AF_INET; - addr.sin_port = htons(port); if (bind(s, (struct sockaddr*) &addr, sizeof(addr)) == SOCKET_ERROR) { err = LastSocketError(); closesocket(s); diff --git a/limelight-common/PlatformSockets.h b/limelight-common/PlatformSockets.h index 94164cb..53608f9 100644 --- a/limelight-common/PlatformSockets.h +++ b/limelight-common/PlatformSockets.h @@ -25,7 +25,7 @@ #endif SOCKET connectTcpSocket(IP_ADDRESS dstaddr, unsigned short port); -SOCKET bindUdpSocket(unsigned short port); +SOCKET bindUdpSocket(void); int enableNoDelay(SOCKET s); int initializePlatformSockets(void); void cleanupPlatformSockets(void); \ No newline at end of file diff --git a/limelight-common/VideoStream.c b/limelight-common/VideoStream.c index e414a8f..5edff55 100644 --- a/limelight-common/VideoStream.c +++ b/limelight-common/VideoStream.c @@ -162,7 +162,7 @@ int startVideoStream(void* rendererContext, int drFlags) { callbacks.setup(configuration.width, configuration.height, 60, rendererContext, drFlags); - rtpSocket = bindUdpSocket(RTP_PORT); + rtpSocket = bindUdpSocket(); if (rtpSocket == INVALID_SOCKET) { return LastSocketError(); }