OpenSL ES: fix QAudioOutput state after resume().

In push mode, the state must be IdleState after resume(), and only
change to ActiveState once it receives some data.

Task-number: QTBUG-50390
Change-Id: Iaf47363196ee94b80ac4ebe58a588929af8d3fad
Reviewed-by: Pasi Petäjäjärvi <pasi.petajajarvi@theqtcompany.com>
This commit is contained in:
Yoann Lopes
2016-01-19 14:15:40 +01:00
parent 4fd2b2f684
commit e126dbb6fb

View File

@@ -238,7 +238,7 @@ void QOpenSLESAudioOutput::resume()
return; return;
} }
setState(QAudio::ActiveState); setState(m_pullMode ? QAudio::ActiveState : QAudio::IdleState);
setError(QAudio::NoError); setError(QAudio::NoError);
} }