mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-10-26 22:09:59 +00:00
Initialize lastSeq when initializing the audio stream
This commit is contained in:
1 parent
4f8595b527
commit
2504f3b7ce
1 file changed
+2
-1
@@ -13,7 +13,7 @@ static PLT_THREAD udpPingThread;
|
|||||||
static PLT_THREAD receiveThread;
|
static PLT_THREAD receiveThread;
|
||||||
static PLT_THREAD decoderThread;
|
static PLT_THREAD decoderThread;
|
||||||
|
|
||||||
static unsigned short lastSeq = 0;
|
static unsigned short lastSeq;
|
||||||
|
|
||||||
#define RTP_PORT 48000
|
#define RTP_PORT 48000
|
||||||
|
|
||||||
@@ -37,6 +37,7 @@ void initializeAudioStream(void) {
|
|||||||
LbqInitializeLinkedBlockingQueue(&packetQueue, 30);
|
LbqInitializeLinkedBlockingQueue(&packetQueue, 30);
|
||||||
}
|
}
|
||||||
RtpqInitializeQueue(&rtpReorderQueue, RTPQ_DEFAULT_MAX_SIZE, RTPQ_DEFUALT_QUEUE_TIME);
|
RtpqInitializeQueue(&rtpReorderQueue, RTPQ_DEFAULT_MAX_SIZE, RTPQ_DEFUALT_QUEUE_TIME);
|
||||||
|
lastSeq = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void freePacketList(PLINKED_BLOCKING_QUEUE_ENTRY entry) {
|
static void freePacketList(PLINKED_BLOCKING_QUEUE_ENTRY entry) {
|
||||||
|
|||||||
Reference in new issue
Block a user