diff options
author | Yoann Lopes <yoann.lopes@theqtcompany.com> | 2016-01-19 14:15:40 +0100 |
---|---|---|
committer | Yoann Lopes <yoann.lopes@theqtcompany.com> | 2016-01-19 15:30:52 +0000 |
commit | e126dbb6fb7440882b49fb2fcbde53f4b0a5e180 (patch) | |
tree | 84b1a8f1787a6a6c4f7cd70197bee2c865f5344f | |
parent | 4fd2b2f6849cda72cdcc06aa0907bc565875f6dd (diff) | |
download | qtmultimedia-e126dbb6fb7440882b49fb2fcbde53f4b0a5e180.tar.gz |
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>
-rw-r--r-- | src/plugins/opensles/qopenslesaudiooutput.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/opensles/qopenslesaudiooutput.cpp b/src/plugins/opensles/qopenslesaudiooutput.cpp index d17363d20..b12908c39 100644 --- a/src/plugins/opensles/qopenslesaudiooutput.cpp +++ b/src/plugins/opensles/qopenslesaudiooutput.cpp @@ -238,7 +238,7 @@ void QOpenSLESAudioOutput::resume() return; } - setState(QAudio::ActiveState); + setState(m_pullMode ? QAudio::ActiveState : QAudio::IdleState); setError(QAudio::NoError); } |