Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-126988

[macOS] QAudioSource::start returns invalid pointer if start failed

    XMLWordPrintable

Details

    • macOS
    • 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

      Attachments

        For Gerrit Dashboard: QTBUG-126988
        # Subject Branch Project Status CR V

        Activity

          People

            qtmultimediateam Qt Multimedia Team
            evgenpervenenko Evgen Pervenenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: