kopia lustrzana https://github.com/OpenRTX/OpenRTX
Fixed bug in M17 modulator and demodulator making them not releasing their audio paths on termination thus locking up the thread on M17 mode re-entering.
rodzic
12932db37c
commit
9d021b7557
|
@ -189,6 +189,7 @@ void M17Demodulator::init()
|
|||
void M17Demodulator::terminate()
|
||||
{
|
||||
// Ensure proper termination of baseband sampling
|
||||
audioPath_release(basebandPath);
|
||||
inputStream_stop(basebandId);
|
||||
|
||||
// Delete the buffers and deallocate memory.
|
||||
|
|
|
@ -67,6 +67,9 @@ void M17Modulator::terminate()
|
|||
txRunning = false;
|
||||
}
|
||||
|
||||
// Always ensure that outgoing audio path is closed
|
||||
audioPath_release(outPath);
|
||||
|
||||
// Deallocate memory.
|
||||
baseband_buffer.reset();
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue