1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-10 10:33:29 -05:00

Remote Input: fixed read pointer initialization. Fixes segfault when stream sample rate is lowered

This commit is contained in:
f4exb 2021-12-26 11:55:16 +01:00
parent d981912eee
commit 1d2187d059

View File

@ -93,8 +93,8 @@ void RemoteInputBuffer::setNbDecoderSlots(int nbDecoderSlots)
m_decoderSlots = new DecoderSlot[m_nbDecoderSlots]; m_decoderSlots = new DecoderSlot[m_nbDecoderSlots];
m_frames = new BufferFrame[m_nbDecoderSlots]; m_frames = new BufferFrame[m_nbDecoderSlots];
m_frameHead = -1; m_frameHead = -1;
initReadIndex();
} }
void RemoteInputBuffer::setBufferLenSec(const RemoteMetaDataFEC& metaData) void RemoteInputBuffer::setBufferLenSec(const RemoteMetaDataFEC& metaData)