mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-18 01:15:46 +00:00
Remove extra spacing and fix indentation
This commit is contained in:
parent
c04a8e9b4c
commit
da9433fb0a
@ -66,10 +66,10 @@ static PNVCTL_PACKET_HEADER readNvctlPacket(void) {
|
|||||||
memcpy(fullPacket, &staticHeader, sizeof(staticHeader));
|
memcpy(fullPacket, &staticHeader, sizeof(staticHeader));
|
||||||
if (staticHeader.payloadLength != 0) {
|
if (staticHeader.payloadLength != 0) {
|
||||||
err = recv(ctlSock, (char*) (fullPacket + 1), staticHeader.payloadLength, 0);
|
err = recv(ctlSock, (char*) (fullPacket + 1), staticHeader.payloadLength, 0);
|
||||||
if (err != staticHeader.payloadLength) {
|
if (err != staticHeader.payloadLength) {
|
||||||
free(fullPacket);
|
free(fullPacket);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return fullPacket;
|
return fullPacket;
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
# if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
|
# if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
|
||||||
# define LC_WINDOWS_PHONE
|
# define LC_WINDOWS_PHONE
|
||||||
|
@ -216,6 +216,3 @@ int PltWaitForEvent(PLT_EVENT *event) {
|
|||||||
pthread_mutex_unlock(&event->mutex);
|
pthread_mutex_unlock(&event->mutex);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -246,4 +246,3 @@ void queueRtpPacket(PRTP_PACKET rtpPacket, int length) {
|
|||||||
|
|
||||||
processRtpPayload((PNV_VIDEO_PACKET) (rtpPacket + 1), length - sizeof(*rtpPacket));
|
processRtpPayload((PNV_VIDEO_PACKET) (rtpPacket + 1), length - sizeof(*rtpPacket));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -231,4 +231,3 @@ int startVideoStream(void* rendererContext, int drFlags) {
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user