Details
-
Technical task
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
-
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
Gerrit Reviews
For Gerrit Dashboard: QTBUG-91210 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
640238,7 | Audio: improve moveToThread support | dev | qt/qtmultimedia | Status: NEW | 0 | 0 |
640216,25 | Audio: ensure parent of QPlatformAudioEndpointBase | dev | qt/qtmultimedia | Status: MERGED | +2 | 0 |
644167,2 | Audio: ensure parent of QPlatformAudioEndpointBase | 6.9 | qt/qtmultimedia | Status: MERGED | +2 | 0 |
644281,2 | Audio: ensure parent of QPlatformAudioEndpointBase | tqtc/lts-6.8 | qt/tqtc-qtmultimedia | Status: MERGED | +2 | 0 |