Fix missing status checks
This commit is contained in:
parent
fa93a6cef5
commit
e438445219
2 changed files with 6 additions and 0 deletions
|
|
@ -195,6 +195,9 @@ int startAudioStream(void) {
|
|||
callbacks.init();
|
||||
|
||||
rtpSocket = bindUdpSocket(RTP_PORT);
|
||||
if (rtpSocket == INVALID_SOCKET) {
|
||||
return LastSocketError();
|
||||
}
|
||||
|
||||
err = PltCreateThread(UdpPingThreadProc, NULL, &udpPingThread);
|
||||
if (err != 0) {
|
||||
|
|
|
|||
|
|
@ -163,6 +163,9 @@ int startVideoStream(void* rendererContext, int drFlags) {
|
|||
configuration.height, 60, rendererContext, drFlags);
|
||||
|
||||
rtpSocket = bindUdpSocket(RTP_PORT);
|
||||
if (rtpSocket == INVALID_SOCKET) {
|
||||
return LastSocketError();
|
||||
}
|
||||
|
||||
err = PltCreateThread(UdpPingThreadProc, NULL, &udpPingThread);
|
||||
if (err != 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue