mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-06-17 14:21:30 +00:00
Remove usage of long types for LP64 and LLP64 consistency
This commit is contained in:
+4
-4
@@ -33,8 +33,8 @@ static PLT_THREAD invalidateRefFramesThread;
|
|||||||
static PLT_THREAD controlReceiveThread;
|
static PLT_THREAD controlReceiveThread;
|
||||||
static PLT_EVENT invalidateRefFramesEvent;
|
static PLT_EVENT invalidateRefFramesEvent;
|
||||||
static int lossCountSinceLastReport;
|
static int lossCountSinceLastReport;
|
||||||
static long lastGoodFrame;
|
static int lastGoodFrame;
|
||||||
static long lastSeenFrame;
|
static int lastSeenFrame;
|
||||||
static bool stopping;
|
static bool stopping;
|
||||||
static bool disconnectPending;
|
static bool disconnectPending;
|
||||||
|
|
||||||
@@ -660,7 +660,7 @@ static void lossStatsThreadFunc(void* context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void requestIdrFrame(void) {
|
static void requestIdrFrame(void) {
|
||||||
long long payload[3];
|
int64_t payload[3];
|
||||||
|
|
||||||
if (AppVersionQuad[0] >= 5) {
|
if (AppVersionQuad[0] >= 5) {
|
||||||
// Form the payload
|
// Form the payload
|
||||||
@@ -697,7 +697,7 @@ static void requestIdrFrame(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void requestInvalidateReferenceFrames(void) {
|
static void requestInvalidateReferenceFrames(void) {
|
||||||
long long payload[3];
|
int64_t payload[3];
|
||||||
PQUEUED_FRAME_INVALIDATION_TUPLE qfit;
|
PQUEUED_FRAME_INVALIDATION_TUPLE qfit;
|
||||||
|
|
||||||
LC_ASSERT(isReferenceFrameInvalidationEnabled());
|
LC_ASSERT(isReferenceFrameInvalidationEnabled());
|
||||||
|
|||||||
+1
-1
@@ -332,7 +332,7 @@ static void inputSendThreadProc(void* context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Prepend the length to the message
|
// Prepend the length to the message
|
||||||
encryptedLengthPrefix = htonl((unsigned long)encryptedSize);
|
encryptedLengthPrefix = htonl((uint32_t)encryptedSize);
|
||||||
memcpy(&encryptedBuffer[0], &encryptedLengthPrefix, 4);
|
memcpy(&encryptedBuffer[0], &encryptedLengthPrefix, 4);
|
||||||
|
|
||||||
if (AppVersionQuad[0] < 5) {
|
if (AppVersionQuad[0] < 5) {
|
||||||
|
|||||||
+1
-1
@@ -139,7 +139,7 @@ typedef struct _DECODE_UNIT {
|
|||||||
// Receive time of first buffer. This value uses an implementation-defined epoch.
|
// Receive time of first buffer. This value uses an implementation-defined epoch.
|
||||||
// To compute actual latency values, use LiGetMillis() to get a timestamp that
|
// To compute actual latency values, use LiGetMillis() to get a timestamp that
|
||||||
// shares the same epoch as this value.
|
// shares the same epoch as this value.
|
||||||
unsigned long long receiveTimeMs;
|
uint64_t receiveTimeMs;
|
||||||
|
|
||||||
// Presentation time in milliseconds with the epoch at the first captured frame.
|
// Presentation time in milliseconds with the epoch at the first captured frame.
|
||||||
// This can be used to aid frame pacing or to drop old frames that were queued too
|
// This can be used to aid frame pacing or to drop old frames that were queued too
|
||||||
|
|||||||
+2
-2
@@ -6,7 +6,7 @@ typedef struct _RTPFEC_QUEUE_ENTRY {
|
|||||||
PRTP_PACKET packet;
|
PRTP_PACKET packet;
|
||||||
int length;
|
int length;
|
||||||
bool isParity;
|
bool isParity;
|
||||||
unsigned long long receiveTimeMs;
|
uint64_t receiveTimeMs;
|
||||||
unsigned int presentationTimeMs;
|
unsigned int presentationTimeMs;
|
||||||
|
|
||||||
struct _RTPFEC_QUEUE_ENTRY* next;
|
struct _RTPFEC_QUEUE_ENTRY* next;
|
||||||
@@ -16,7 +16,7 @@ typedef struct _RTPFEC_QUEUE_ENTRY {
|
|||||||
typedef struct _RTP_FEC_QUEUE {
|
typedef struct _RTP_FEC_QUEUE {
|
||||||
PRTPFEC_QUEUE_ENTRY bufferHead;
|
PRTPFEC_QUEUE_ENTRY bufferHead;
|
||||||
PRTPFEC_QUEUE_ENTRY bufferTail;
|
PRTPFEC_QUEUE_ENTRY bufferTail;
|
||||||
unsigned long long bufferFirstRecvTimeMs;
|
uint64_t bufferFirstRecvTimeMs;
|
||||||
int bufferSize;
|
int bufferSize;
|
||||||
int bufferLowestSequenceNumber;
|
int bufferLowestSequenceNumber;
|
||||||
int bufferHighestSequenceNumber;
|
int bufferHighestSequenceNumber;
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ static bool waitingForIdrFrame;
|
|||||||
static unsigned int lastPacketInStream;
|
static unsigned int lastPacketInStream;
|
||||||
static bool decodingFrame;
|
static bool decodingFrame;
|
||||||
static bool strictIdrFrameWait;
|
static bool strictIdrFrameWait;
|
||||||
static unsigned long long firstPacketReceiveTime;
|
static uint64_t firstPacketReceiveTime;
|
||||||
static unsigned int firstPacketPresentationTime;
|
static unsigned int firstPacketPresentationTime;
|
||||||
static bool dropStatePending;
|
static bool dropStatePending;
|
||||||
static bool idrFrameProcessed;
|
static bool idrFrameProcessed;
|
||||||
@@ -488,8 +488,8 @@ static int isFirstPacket(char flags) {
|
|||||||
|
|
||||||
// Process an RTP Payload
|
// Process an RTP Payload
|
||||||
// The caller will free *existingEntry unless we NULL it
|
// The caller will free *existingEntry unless we NULL it
|
||||||
void processRtpPayload(PNV_VIDEO_PACKET videoPacket, int length,
|
static void processRtpPayload(PNV_VIDEO_PACKET videoPacket, int length,
|
||||||
unsigned long long receiveTimeMs, unsigned int presentationTimeMs,
|
uint64_t receiveTimeMs, unsigned int presentationTimeMs,
|
||||||
PLENTRY_INTERNAL* existingEntry) {
|
PLENTRY_INTERNAL* existingEntry) {
|
||||||
BUFFER_DESC currentPos;
|
BUFFER_DESC currentPos;
|
||||||
int frameIndex;
|
int frameIndex;
|
||||||
|
|||||||
Reference in New Issue
Block a user