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.
This commit is contained in:
parent
12932db37c
commit
9d021b7557
|
|
@ -189,6 +189,7 @@ void M17Demodulator::init()
|
||||||
void M17Demodulator::terminate()
|
void M17Demodulator::terminate()
|
||||||
{
|
{
|
||||||
// Ensure proper termination of baseband sampling
|
// Ensure proper termination of baseband sampling
|
||||||
|
audioPath_release(basebandPath);
|
||||||
inputStream_stop(basebandId);
|
inputStream_stop(basebandId);
|
||||||
|
|
||||||
// Delete the buffers and deallocate memory.
|
// Delete the buffers and deallocate memory.
|
||||||
|
|
|
||||||
|
|
@ -67,6 +67,9 @@ void M17Modulator::terminate()
|
||||||
txRunning = false;
|
txRunning = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Always ensure that outgoing audio path is closed
|
||||||
|
audioPath_release(outPath);
|
||||||
|
|
||||||
// Deallocate memory.
|
// Deallocate memory.
|
||||||
baseband_buffer.reset();
|
baseband_buffer.reset();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue