Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
6.5.3, 6.7.2
-
None
-
-
81bb2f70b (dev), d43033a6a (6.8), 12207cfe6 (6.7), 4bdc6dff1 (tqtc/lts-6.5)
Description
Description:
It is possible that QAudioSource::start return invalid pointer(not nullptr)
Steps to reproduce:
After first initialisation if QAudioSource::start failed
QIODevice * is not nullptr but not valid
Workaround:
need to check QAudioSource::error() and QAudioSource::state()
Code:
QAudioSource *audioSource = new QAudioSource(device, format); auto *ioDevice = audioSource->start(); ioDevice - invalid and != nullptr if QAudioSource::start failed
Possible fix:
qdarwinaudiosource_p.h
QDarwinAudioSource::m_audioIO is not initialized