[Audio/XMA] Invalidate output buffer when there is no valid input buffer

This commit is contained in:
Gliniak 2020-09-28 22:42:27 +02:00 committed by Rick Gibbed
parent 91d5ba444a
commit d1f7ee3593
1 changed files with 1 additions and 0 deletions

View File

@ -302,6 +302,7 @@ void XmaContext::DecodePackets(XMA_CONTEXT_DATA* data) {
// No available data. // No available data.
if (!data->input_buffer_0_valid && !data->input_buffer_1_valid) { if (!data->input_buffer_0_valid && !data->input_buffer_1_valid) {
data->output_buffer_valid = 0;
return; return;
} }