mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-18 09:25:49 +00:00
Remove C99-isms
This commit is contained in:
parent
caa6a203ed
commit
125f81118f
@ -10,6 +10,8 @@ static void* transactRtspMessage(IP_ADDRESS addr, void* message) {
|
|||||||
char responseBuffer[RTSP_MAX_RESP_SIZE];
|
char responseBuffer[RTSP_MAX_RESP_SIZE];
|
||||||
int offset;
|
int offset;
|
||||||
void* responseMsg = NULL;
|
void* responseMsg = NULL;
|
||||||
|
char* serializedMessage;
|
||||||
|
int messageLen;
|
||||||
|
|
||||||
sock = connectTcpSocket(addr, 48010);
|
sock = connectTcpSocket(addr, 48010);
|
||||||
if (sock == INVALID_SOCKET) {
|
if (sock == INVALID_SOCKET) {
|
||||||
@ -17,8 +19,8 @@ static void* transactRtspMessage(IP_ADDRESS addr, void* message) {
|
|||||||
}
|
}
|
||||||
enableNoDelay(sock);
|
enableNoDelay(sock);
|
||||||
|
|
||||||
char* serializedMessage = NULL; // FIXME
|
serializedMessage = NULL; // FIXME
|
||||||
int messageLen = 0; // FIXME
|
messageLen = 0; // FIXME
|
||||||
|
|
||||||
// Send our message
|
// Send our message
|
||||||
err = send(sock, serializedMessage, messageLen, 0);
|
err = send(sock, serializedMessage, messageLen, 0);
|
||||||
|
@ -251,6 +251,7 @@ void processRtpPayloadFast(PNV_VIDEO_PACKET videoPacket, BUFFER_DESC location) {
|
|||||||
void processRtpPayload(PNV_VIDEO_PACKET videoPacket, int length) {
|
void processRtpPayload(PNV_VIDEO_PACKET videoPacket, int length) {
|
||||||
BUFFER_DESC currentPos, specialSeq;
|
BUFFER_DESC currentPos, specialSeq;
|
||||||
int isFirstPacket;
|
int isFirstPacket;
|
||||||
|
int streamPacketIndex;
|
||||||
|
|
||||||
currentPos.data = (char*) (videoPacket + 1);
|
currentPos.data = (char*) (videoPacket + 1);
|
||||||
currentPos.offset = 0;
|
currentPos.offset = 0;
|
||||||
@ -349,7 +350,7 @@ void processRtpPayload(PNV_VIDEO_PACKET videoPacket, int length) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int streamPacketIndex = videoPacket->streamPacketIndex;
|
streamPacketIndex = videoPacket->streamPacketIndex;
|
||||||
if (streamPacketIndex != (int) (lastPacketInStream + 1)) {
|
if (streamPacketIndex != (int) (lastPacketInStream + 1)) {
|
||||||
// Packets were lost so report this to the server
|
// Packets were lost so report this to the server
|
||||||
connectionLostPackets(lastPacketInStream, streamPacketIndex);
|
connectionLostPackets(lastPacketInStream, streamPacketIndex);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user