[Audio/XMA] Invalidate output buffer when there is no valid input buffer
This commit is contained in:
parent
91d5ba444a
commit
d1f7ee3593
|
@ -302,6 +302,7 @@ void XmaContext::DecodePackets(XMA_CONTEXT_DATA* data) {
|
|||
|
||||
// No available data.
|
||||
if (!data->input_buffer_0_valid && !data->input_buffer_1_valid) {
|
||||
data->output_buffer_valid = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue