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:
parent
d981912eee
commit
1d2187d059
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user