Skip to content
Commit 30fc550f authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

AudioDataOutput: flush m_pendingData when channels count changes

When channel count changes and m_pendingData is not empty, the new data
that we append to m_pendingData mess it up, because then we are no longer
able to correctly decode to data into m_channelBuffers.

This change makes the processBuffer() method to flush the pending data into
channel buffers and emit dataReady() signal when the channel count changes.
Only after that it continues to process the newly arrived data with the
new channel count).

BUG: 331916
FIXED-IN: 4.8
parent de8f7623
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment