mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-18 01:15:46 +00:00
Fix missing status checks
This commit is contained in:
parent
fa93a6cef5
commit
e438445219
@ -195,6 +195,9 @@ int startAudioStream(void) {
|
|||||||
callbacks.init();
|
callbacks.init();
|
||||||
|
|
||||||
rtpSocket = bindUdpSocket(RTP_PORT);
|
rtpSocket = bindUdpSocket(RTP_PORT);
|
||||||
|
if (rtpSocket == INVALID_SOCKET) {
|
||||||
|
return LastSocketError();
|
||||||
|
}
|
||||||
|
|
||||||
err = PltCreateThread(UdpPingThreadProc, NULL, &udpPingThread);
|
err = PltCreateThread(UdpPingThreadProc, NULL, &udpPingThread);
|
||||||
if (err != 0) {
|
if (err != 0) {
|
||||||
|
@ -163,6 +163,9 @@ int startVideoStream(void* rendererContext, int drFlags) {
|
|||||||
configuration.height, 60, rendererContext, drFlags);
|
configuration.height, 60, rendererContext, drFlags);
|
||||||
|
|
||||||
rtpSocket = bindUdpSocket(RTP_PORT);
|
rtpSocket = bindUdpSocket(RTP_PORT);
|
||||||
|
if (rtpSocket == INVALID_SOCKET) {
|
||||||
|
return LastSocketError();
|
||||||
|
}
|
||||||
|
|
||||||
err = PltCreateThread(UdpPingThreadProc, NULL, &udpPingThread);
|
err = PltCreateThread(UdpPingThreadProc, NULL, &udpPingThread);
|
||||||
if (err != 0) {
|
if (err != 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user