3
0
Fork 0
mirror of https://github.com/JulianGro/overte.git synced 2025-04-30 10:02:53 +02:00

Merge pull request from birarda/master

fix for audio-mixer shutdown on UNIX/OS X
This commit is contained in:
Clément Brisset 2015-06-26 12:23:52 -07:00
commit 229b367186

View file

@ -852,9 +852,11 @@ void AudioMixer::run() {
// since we're a while loop we need to help Qt's event processing
QCoreApplication::processEvents();
QCoreApplication::sendPostedEvents(this, 0);
if (_isFinished) {
// at this point the audio-mixer is done
// check if we have a deferred delete event to process (which we should once finished)
QCoreApplication::sendPostedEvents(this, QEvent::DeferredDelete);
break;
}