mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-07-05 18:35:26 -04:00
Multi device support: fixed segfault in audio stop
This commit is contained in:
parent
4306192097
commit
7aaed679c7
@ -112,14 +112,6 @@ bool AudioOutput::start(int device, int rate)
|
|||||||
void AudioOutput::stop()
|
void AudioOutput::stop()
|
||||||
{
|
{
|
||||||
QMutexLocker mutexLocker(&m_mutex);
|
QMutexLocker mutexLocker(&m_mutex);
|
||||||
|
|
||||||
if (m_audioOutput != 0)
|
|
||||||
{
|
|
||||||
m_audioOutput->stop();
|
|
||||||
delete m_audioOutput;
|
|
||||||
m_audioOutput = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
QIODevice::close();
|
QIODevice::close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user