Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-136677 Support moving QtMM classes to treads
  3. QTBUG-91210

warning when move QAudioOutput to other thread

    XMLWordPrintable

Details

    • Technical task
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Multimedia
    • Linux/X11
    • c2306109b (dev), 243ea4ec4 (6.9), 0f982d2ef (tqtc/lts-6.8)

    Description

      When executing the start () method of QAudioOutput that is a member of an object that has been moved to another thread, the warning QObject :: startTimer: Timers cannot be started from another thread is displayed.

      Analyzing the QAudioOutput's constructor code I noticed that QAudioDeviceFactory does not attach the parent, as a result of moving to another thread the only QAudioOutput member is not moved, causing the warning.

      I attached a simple project to illustrate.

      Attachments

        1. test.tar.xz
          2 kB
          Gustavo Ferreira
        For Gerrit Dashboard: QTBUG-91210
        # Subject Branch Project Status CR V

        Activity

          People

            timblechmann tim blechmann
            gustavoferreira Gustavo Ferreira
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change