mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-12-03 03:31:27 +00:00
Fix missing global reinitialization when starting a new stream
This commit is contained in:
1 parent
ae6633eedc
commit
0b4a44d19c
2 files changed
+2
No files matched your search
@@ -953,6 +953,7 @@ int performRtspHandshake(PSERVER_INFORMATION serverInfo) {
|
|||||||
controlStreamId = APP_VERSION_AT_LEAST(7, 1, 431) ? "streamid=control/13/0" : "streamid=control/1/0";
|
controlStreamId = APP_VERSION_AT_LEAST(7, 1, 431) ? "streamid=control/13/0" : "streamid=control/1/0";
|
||||||
AudioEncryptionEnabled = false;
|
AudioEncryptionEnabled = false;
|
||||||
encryptedRtspEnabled = serverInfo->rtspSessionUrl && strstr(serverInfo->rtspSessionUrl, "rtspenc://");
|
encryptedRtspEnabled = serverInfo->rtspSessionUrl && strstr(serverInfo->rtspSessionUrl, "rtspenc://");
|
||||||
|
encryptionSequenceNumber = 0;
|
||||||
encryptionCtx = PltCreateCryptoContext(0);
|
encryptionCtx = PltCreateCryptoContext(0);
|
||||||
decryptionCtx = PltCreateCryptoContext(1);
|
decryptionCtx = PltCreateCryptoContext(1);
|
||||||
|
|
||||||
|
|||||||
@@ -103,6 +103,7 @@ void initializeVideoDepacketizer(int pktSize) {
|
|||||||
firstPacketRtpTimestamp = 0;
|
firstPacketRtpTimestamp = 0;
|
||||||
lastPacketPayloadLength = 0;
|
lastPacketPayloadLength = 0;
|
||||||
dropStatePending = false;
|
dropStatePending = false;
|
||||||
|
consecutiveFrameDrops = 0;
|
||||||
atomic_store_explicit(&idrFrameProcessed, false, memory_order_relaxed);
|
atomic_store_explicit(&idrFrameProcessed, false, memory_order_relaxed);
|
||||||
strictIdrFrameWait = !isReferenceFrameInvalidationEnabled();
|
strictIdrFrameWait = !isReferenceFrameInvalidationEnabled();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user