diff --git a/limelight-common/ByteBuffer.c b/limelight-common/ByteBuffer.c index 27ee05b..cf0e6f7 100644 --- a/limelight-common/ByteBuffer.c +++ b/limelight-common/ByteBuffer.c @@ -98,4 +98,4 @@ int BbPut(PBYTE_BUFFER buff, char c) { buff->position += sizeof(c); return 1; -} \ No newline at end of file +} diff --git a/limelight-common/ControlStream.c b/limelight-common/ControlStream.c index 6fe136a..7952e4c 100644 --- a/limelight-common/ControlStream.c +++ b/limelight-common/ControlStream.c @@ -66,10 +66,10 @@ static PNVCTL_PACKET_HEADER readNvctlPacket(void) { memcpy(fullPacket, &staticHeader, sizeof(staticHeader)); if (staticHeader.payloadLength != 0) { err = recv(ctlSock, (char*) (fullPacket + 1), staticHeader.payloadLength, 0); - if (err != staticHeader.payloadLength) { - free(fullPacket); - return NULL; - } + if (err != staticHeader.payloadLength) { + free(fullPacket); + return NULL; + } } return fullPacket; diff --git a/limelight-common/Platform.h b/limelight-common/Platform.h index c43cd9e..72ef25a 100644 --- a/limelight-common/Platform.h +++ b/limelight-common/Platform.h @@ -10,7 +10,6 @@ #include #endif - #ifdef _WIN32 # if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP # define LC_WINDOWS_PHONE diff --git a/limelight-common/PlatformSockets.c b/limelight-common/PlatformSockets.c index 0a6e49c..d9f4ffb 100644 --- a/limelight-common/PlatformSockets.c +++ b/limelight-common/PlatformSockets.c @@ -79,4 +79,4 @@ void cleanupPlatformSockets(void) { WSACleanup(); #else #endif -} \ No newline at end of file +} diff --git a/limelight-common/PlatformThreads.c b/limelight-common/PlatformThreads.c index 94e4e96..4a1450d 100644 --- a/limelight-common/PlatformThreads.c +++ b/limelight-common/PlatformThreads.c @@ -216,6 +216,3 @@ int PltWaitForEvent(PLT_EVENT *event) { pthread_mutex_unlock(&event->mutex); #endif } - - - diff --git a/limelight-common/VideoDepacketizer.c b/limelight-common/VideoDepacketizer.c index a1fa2ec..ee1d9b6 100644 --- a/limelight-common/VideoDepacketizer.c +++ b/limelight-common/VideoDepacketizer.c @@ -246,4 +246,3 @@ void queueRtpPacket(PRTP_PACKET rtpPacket, int length) { processRtpPayload((PNV_VIDEO_PACKET) (rtpPacket + 1), length - sizeof(*rtpPacket)); } - diff --git a/limelight-common/VideoStream.c b/limelight-common/VideoStream.c index 3d9c489..62f16aa 100644 --- a/limelight-common/VideoStream.c +++ b/limelight-common/VideoStream.c @@ -231,4 +231,3 @@ int startVideoStream(void* rendererContext, int drFlags) { return 0; } -