mirror of
https://github.com/wolfpld/tracy.git
synced 2026-11-19 22:25:59 +00:00
Use LZ4_initStream instead of deprecated reset calls.
This commit is contained in:
@@ -2119,7 +2119,7 @@ void Profiler::Worker()
|
||||
HandshakeStatus handshake = HandshakeWelcome;
|
||||
m_sock->Send( &handshake, sizeof( handshake ) );
|
||||
|
||||
LZ4_resetStream( (LZ4_stream_t*)m_stream );
|
||||
LZ4_initStream( m_stream, sizeof( LZ4_stream_t ) );
|
||||
m_sock->Send( &welcome, sizeof( welcome ) );
|
||||
|
||||
m_threadCtx = 0;
|
||||
|
||||
@@ -54,7 +54,7 @@ public:
|
||||
break;
|
||||
case FileCompression::Extreme:
|
||||
m_streamHC = LZ4_createStreamHC();
|
||||
LZ4_resetStreamHC( m_streamHC, LZ4HC_CLEVEL_MAX );
|
||||
LZ4_resetStreamHC_fast( m_streamHC, LZ4HC_CLEVEL_MAX );
|
||||
break;
|
||||
case FileCompression::Zstd:
|
||||
m_streamZstd = ZSTD_createCStream();
|
||||
|
||||
Reference in New Issue
Block a user